Python pyasn1.type.error.PyAsn1Error() Examples

The following are 30 code examples of pyasn1.type.error.PyAsn1Error(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module pyasn1.type.error , or try the search function .
Example #1
Source File: constraint.py    From opsbro with MIT License 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #2
Source File: constraint.py    From scalyr-agent-2 with Apache License 2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
                )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #3
Source File: constraint.py    From scalyr-agent-2 with Apache License 2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #4
Source File: constraint.py    From addon with GNU General Public License v3.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
                )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #5
Source File: constraint.py    From addon with GNU General Public License v3.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #6
Source File: constraint.py    From xbmc-addons-chinese with GNU General Public License v2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
                )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #7
Source File: constraint.py    From xbmc-addons-chinese with GNU General Public License v2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #8
Source File: constraint.py    From xbmc-addons-chinese with GNU General Public License v2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
                )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #9
Source File: constraint.py    From xbmc-addons-chinese with GNU General Public License v2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #10
Source File: constraint.py    From luci-py with Apache License 2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
            )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #11
Source File: constraint.py    From luci-py with Apache License 2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')

        AbstractConstraint._setValues(self, values) 
Example #12
Source File: constraint.py    From opsbro with MIT License 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
                )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #13
Source File: constraint.py    From bash-lambda-layer with MIT License 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')

        AbstractConstraint._setValues(self, values) 
Example #14
Source File: constraint.py    From plugin.video.bdyun with GNU General Public License v3.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
                )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #15
Source File: constraint.py    From plugin.video.bdyun with GNU General Public License v3.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #16
Source File: constraint.py    From pelisalacarta-ce with GNU General Public License v3.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
                )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #17
Source File: constraint.py    From pelisalacarta-ce with GNU General Public License v3.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #18
Source File: constraint.py    From xunfengES with GNU General Public License v3.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
                )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #19
Source File: constraint.py    From xunfengES with GNU General Public License v3.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #20
Source File: constraint.py    From xunfengES with GNU General Public License v3.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
                )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #21
Source File: constraint.py    From xunfengES with GNU General Public License v3.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #22
Source File: constraint.py    From aws-kube-codesuite with Apache License 2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
            )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #23
Source File: constraint.py    From aws-kube-codesuite with Apache License 2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #24
Source File: constraint.py    From nzb-subliminal with GNU General Public License v3.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #25
Source File: constraint.py    From oss-ftp with MIT License 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #26
Source File: constraint.py    From Safejumper-for-Desktop with GNU General Public License v2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
            )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #27
Source File: constraint.py    From Safejumper-for-Desktop with GNU General Public License v2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')
        AbstractConstraint._setValues(self, values) 
Example #28
Source File: constraint.py    From teleport with Apache License 2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
            )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values) 
Example #29
Source File: constraint.py    From teleport with Apache License 2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 1:
            raise error.PyAsn1Error('Single constraint expected')

        AbstractConstraint._setValues(self, values) 
Example #30
Source File: constraint.py    From teleport with Apache License 2.0 5 votes vote down vote up
def _setValues(self, values):
        if len(values) != 2:
            raise error.PyAsn1Error(
                '%s: bad constraint values' % (self.__class__.__name__,)
            )
        self.start, self.stop = values
        if self.start > self.stop:
            raise error.PyAsn1Error(
                '%s: screwed constraint values (start > stop): %s > %s' % (
                    self.__class__.__name__,
                    self.start, self.stop
                )
            )
        AbstractConstraint._setValues(self, values)