mtpgwlib.errors
index
/home/klokan/Projects/MarineTrans/opt/mtpgw/lib/mtpgwlib/errors.py

errors module
-------------
Define internal exceptions for MTP states and default error messages.
 
MTP - Marine Trans Purchasing
Copyright (2005) Klokan Petr Pridal

 
Classes
       
exceptions.Exception
DocumentUnsupported
DocumentXMLUnsupported
DocumentMTMLUnsupported
FileMakerError
FileMakerRecordNotUniq
FileMakerUnavailable
FormNotFilled
WrongConfig
XMLBadFormed
XMLNotValid

 
class DocumentMTMLUnsupported(DocumentXMLUnsupported)
    Raised when MTML document is not supported by MTPGW project.
 
 
Method resolution order:
DocumentMTMLUnsupported
DocumentXMLUnsupported
DocumentUnsupported
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DocumentUnsupported(exceptions.Exception)
    Raised when document is not supported by MTPGW project.
 
  Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class DocumentXMLUnsupported(DocumentUnsupported)
    Raised when XML document is not supported by MTPGW project.
 
 
Method resolution order:
DocumentXMLUnsupported
DocumentUnsupported
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class FileMakerError(exceptions.Exception)
    Raised when FileMaker return some error during conversation
 
  Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class FileMakerRecordNotUniq(exceptions.Exception)
    Raised when FileMaker return "Error 504: Value in field is not unique as required in validation entry options" during conversation
 
  Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class FileMakerUnavailable(exceptions.Exception)
    Raised when network connection to FileMaker server is not available.
 
  Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class FormNotFilled(exceptions.Exception)
    Raised when document doesn't contain REQUIRED fields.
 
  Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class WrongConfig(exceptions.Exception)
    Raised when problem with reading of config occured.
 
  Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class XMLBadFormed(exceptions.Exception)
    Raised when XML document is corrupted or not well formed XML
 
  Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class XMLNotValid(exceptions.Exception)
    Raised when XML document is not valid
 
  Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
Data
        FileMakerErrorMessage = {-1: 'Unknown error', 0: 'No error (success)', 1: 'User canceled action', 2: 'Memory error', 3: 'Command is unavailable (for example, wrong operating system, wrong mode, etc.)', 4: 'Command is unknown', 5: 'Command is invalid (for example, a Set Field script step does not have a calculation specified)', 100: 'File is missing', 101: 'Record is missing', 102: 'Field is missing', ...}
MessageFormNotFilled = 'Dear supplier,\n %s .... '
MessageMTMLPolarisXMLBadFormed = 'Dear vessel,\n %s .... '
MessageMTMLPolarisXMLNotValid = 'Dear vessel,\n %s .... '
MessagePO = 'Dear supplier,\n %s .... '
MessageRFQ = 'Dear supplier,\n %s .... '
MessageXLSNotValid = 'Dear supplier,\n %s .... '