Package pyx12 :: Module errors
[hide private]

Source Code for Module pyx12.errors

 1  ###################################################################### 
 2  # Copyright (c) 2001-2005 Kalamazoo Community Mental Health Services, 
 3  #   John Holland <jholland@kazoocmh.org> <john@zoner.org> 
 4  # All rights reserved. 
 5  # 
 6  # This software is licensed as described in the file LICENSE.txt, which 
 7  # you should have received as part of this distribution. 
 8  # 
 9  ###################################################################### 
10   
11  #    $Id: errors.py 942 2007-03-21 18:29:16Z johnholland $ 
12   
13  """pyx12 package exception classes. 
14  """ 
15   
16 -class XML_Reader_Error(Exception):
17 """Class for XML Reader errors."""
18
19 -class X12Error(Exception):
20 """Base class for X12N format errors."""
21 22 #class ISAError(X12Error): 23 # """Errors in the ISA or IEA segements.""" 24
25 -class GSError(X12Error):
26 """Errors in the GS or GE segements."""
27 28 #class STError(X12Error): 29 # """Errors in the ST or SE segements.""" 30 31 #class WEDIError(Exception): 32 # """Base class for WEDI errors in this module.""" 33 34 #class WEDI1Error(WEDIError): pass 35 #class WEDI2Error(WEDIError): pass 36 #class WEDI3Error(WEDIError): pass 37 #class WEDI4Error(WEDIError): pass 38 #class WEDI5Error(WEDIError): pass 39 #class WEDI6Error(WEDIError): pass 40
41 -class EngineError(Exception):
42 """Base class for translation engine errors.""" 43 44 #class HL_Loop_Pop(EngineError): 45 # """Pop a HL level""" 46
47 -class IterOutOfBounds(Exception):
48 """Iterator is out of bounds"""
49
50 -class IterDone(Exception):
51 """Iterator is Complete"""
52
53 -class IsValidError(Exception):
54 """ 55 Exception for invalid X12 type errors 56 """ 57 pass
58