pyCAPS
pyCAPS: A Python Extension Module for CAPS
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CAPSError Class Reference

CAPS error exception class. More...

Inherits Exception.

Public Member Functions

def __init__ (self, code=None, msg=None)
 Initialize the CAPSError exception. More...
 

Public Attributes

 errorCode
 Error code encountered when running the CAPS.
 
 errorName
 Name of error code encountered.
 

Static Public Attributes

dictionary capsError
 Dictionary of CAPS errors {errorCode : errorName}. More...
 
dictionary egadsError
 Dictionary of EGADS errors {errorCode : errorName}. More...
 

Detailed Description

CAPS error exception class.

See exception.py for a representative use case.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  code = None,
  msg = None 
)

Initialize the CAPSError exception.

Member Data Documentation

◆ capsError

dictionary capsError
static
Initial value:
= { 0 : 'CAPS_SUCCESS',
-301 : 'CAPS_BADRANK',
-302 : 'CAPS_BADDSETNAME',
-303 : 'CAPS_NOTFOUND',
-304 : 'CAPS_BADINDEX',
-305 : 'CAPS_NOTCHANGED',
-306 : 'CAPS_BADTYPE',
-307 : 'CAPS_NULLVALUE',
-308 : 'CAPS_NULLNAME',
-309 : 'CAPS_NULLOBJ',
-310 : 'CAPS_BADOBJECT',
-311 : 'CAPS_BADVALUE',
-312 : 'CAPS_PARAMBNDERR',
-313 : 'CAPS_NOTCONNECT',
-314 : 'CAPS_NOTPARMTRIC',
-315 : 'CAPS_READONLYERR',
-316 : 'CAPS_FIXEDLEN',
-317 : 'CAPS_BADNAME',
-318 : 'CAPS_BADMETHOD',
-319 : 'CAPS_CIRCULARLINK',
-320 : 'CAPS_UNITERR',
-321 : 'CAPS_NULLBLIND',
-322 : 'CAPS_SHAPEERR',
-323 : 'CAPS_LINKERR',
-324 : 'CAPS_MISMATCH',
-325 : 'CAPS_NOTPROBLEM',
-326 : 'CAPS_RANGEERR',
-327 : 'CAPS_DIRTY',
-328 : 'CAPS_HIERARCHERR',
-329 : 'CAPS_STATEERR',
-330 : 'CAPS_SOURCEERR',
-331 : 'CAPS_EXISTS',
-332 : 'CAPS_IOERR',
-333 : 'CAPS_DIRERR',
-334 : 'CAPS_NOTIMPLEMENT',
-335 : 'CAPS_EXECERR',
-336 : 'CAPS_CLEAN',
-337 : 'CAPS_BADINTENT'}

Dictionary of CAPS errors {errorCode : errorName}.

◆ egadsError

dictionary egadsError
static
Initial value:
= {-31 : 'EGADS_TESSTATE',
-30 : 'EGADS_EXISTS',
-29 : 'EGADS_ATTRERR',
-28 : 'EGADS_TOPOCNT',
-27 : 'EGADS_OCSEGFLT',
-26 : 'EGADS_BADSCALE',
-25 : 'EGADS_NOTORTHO',
-24 : 'EGADS_DEGEN',
-23 : 'EGADS_CONSTERR',
-22 : 'EGADS_TOPOERR',
-21 : 'EGADS_GEOMERR',
-20 : 'EGADS_NOTBODY',
-19 : 'EGADS_WRITERR',
-18 : 'EGADS_NOTMODEL',
-17 : 'EGADS_NOLOAD',
-16 : 'EGADS_RANGERR',
-15 : 'EGADS_NOTGEOM',
-14 : 'EGADS_NOTTESS',
-13 : 'EGADS_EMPTY',
-12 : 'EGADS_NOTTOPO',
-11 : 'EGADS_REFERCE',
-10 : 'EGADS_NOTXFORM',
-9 : 'EGADS_NOTCNTX',
-8 : 'EGADS_MIXCNTX',
-7 : 'EGADS_NODATA',
-6 : 'EGADS_NONAME',
-5 : 'EGADS_INDEXERR',
-4 : 'EGADS_MALLOC',
-3 : 'EGADS_NOTOBJ',
-2 : 'EGADS_NULLOBJ',
-1 : 'EGADS_NOTFOUND',
0 : 'EGADS_SUCCESS',
1 : 'EGADS_OUTSIDE'}

Dictionary of EGADS errors {errorCode : errorName}.


The documentation for this class was generated from the following file: