Package schrodinger :: Package application :: Package licensing :: Module licerror
[hide private]
[frames] | no frames]

Module licerror

Classes [hide private]
  _ErrorLevel
An _ErrorLevel is an ordered type that represents the severity of a license error.
  LicenseException
A LicenseException delivers a LicenseError up the call chain.
  LicenseError
A LicenseError represents a license-related error.
Functions [hide private]
 
_define(code, level, msg, description='', advice='')
Add info about the given error to the "database".
Variables [hide private]
  IGNORE = IGNORE
  WARNING = WARNING
  ERROR = ERROR
  _errcode = {-203: {'code': -203, 'level': ERROR, 'msg': 'Faile...
  _errmsg = {'2 FLEXlock checkouts attempted': {'code': -113, 'l...
  __package__ = None
hash(x)
Function Details [hide private]

_define(code, level, msg, description='', advice='')

 

Add info about the given error to the "database".

If some parameter isn't defined, or if a code of zero is given, it's ignored. If the database already has a value for some error attribute, conflicting values for that attribute are ignored. For example, a number of errors have more than one message for the same error code; the first message added to the db will be the one associated with that error.

The error level should be an instance of _ErrorLevel.


Variables Details [hide private]

_errcode

Value:
{-203: {'code': -203,
        'level': ERROR,
        'msg': 'Failed to get the total feature count.'},
 -202: {'code': -202,
        'level': ERROR,
        'msg': 'Returning borrowed feature failed as same feature borr\
owed from different Vendor daemons.'},
 -201: {'code': -201, 'level': ERROR, 'msg': 'Invalid IPaddress used w\
...

_errmsg

Value:
{'2 FLEXlock checkouts attempted': {'code': -113,
                                    'level': ERROR,
                                    'msg': '2 FLEXlock checkouts attem\
pted'},
 'A FLEXid borrow error occurred': {'code': -102,
                                    'level': ERROR,
                                    'msg': 'A FLEXid borrow error occu\
rred'},
...