# Python stubs generated by omniidl from .././../idl/SALOME_Exception.idl

import omniORB, _omnipy
from omniORB import CORBA, PortableServer
_0_CORBA = CORBA

_omnipy.checkVersion(3,0, __file__)


#
# Start of module "SALOME"
#
__name__ = "SALOME"
_0_SALOME = omniORB.openModule("SALOME", r".././../idl/SALOME_Exception.idl")
_0_SALOME__POA = omniORB.openModule("SALOME__POA", r".././../idl/SALOME_Exception.idl")


# enum ExceptionType
_0_SALOME.COMM = omniORB.EnumItem("COMM", 0)
_0_SALOME.BAD_PARAM = omniORB.EnumItem("BAD_PARAM", 1)
_0_SALOME.INTERNAL_ERROR = omniORB.EnumItem("INTERNAL_ERROR", 2)
_0_SALOME.ExceptionType = omniORB.Enum("IDL:SALOME/ExceptionType:1.0", (_0_SALOME.COMM, _0_SALOME.BAD_PARAM, _0_SALOME.INTERNAL_ERROR,))

_0_SALOME._d_ExceptionType  = (omniORB.tcInternal.tv_enum, _0_SALOME.ExceptionType._NP_RepositoryId, "ExceptionType", _0_SALOME.ExceptionType._items)
_0_SALOME._tc_ExceptionType = omniORB.tcInternal.createTypeCode(_0_SALOME._d_ExceptionType)
omniORB.registerType(_0_SALOME.ExceptionType._NP_RepositoryId, _0_SALOME._d_ExceptionType, _0_SALOME._tc_ExceptionType)

# struct ExceptionStruct
_0_SALOME.ExceptionStruct = omniORB.newEmptyClass()
class ExceptionStruct (omniORB.StructBase):
    _NP_RepositoryId = "IDL:SALOME/ExceptionStruct:1.0"

    def __init__(self, type, text, sourceFile, lineNumber):
        self.type = type
        self.text = text
        self.sourceFile = sourceFile
        self.lineNumber = lineNumber

_0_SALOME.ExceptionStruct = ExceptionStruct
_0_SALOME._d_ExceptionStruct  = (omniORB.tcInternal.tv_struct, ExceptionStruct, ExceptionStruct._NP_RepositoryId, "ExceptionStruct", "type", omniORB.typeMapping["IDL:SALOME/ExceptionType:1.0"], "text", (omniORB.tcInternal.tv_string,0), "sourceFile", (omniORB.tcInternal.tv_string,0), "lineNumber", omniORB.tcInternal.tv_ulong)
_0_SALOME._tc_ExceptionStruct = omniORB.tcInternal.createTypeCode(_0_SALOME._d_ExceptionStruct)
omniORB.registerType(ExceptionStruct._NP_RepositoryId, _0_SALOME._d_ExceptionStruct, _0_SALOME._tc_ExceptionStruct)
del ExceptionStruct

# exception SALOME_Exception
_0_SALOME.SALOME_Exception = omniORB.newEmptyClass()
class SALOME_Exception (CORBA.UserException):
    _NP_RepositoryId = "IDL:SALOME/SALOME_Exception:1.0"

    def __init__(self, details):
        CORBA.UserException.__init__(self, details)
        self.details = details

_0_SALOME.SALOME_Exception = SALOME_Exception
_0_SALOME._d_SALOME_Exception  = (omniORB.tcInternal.tv_except, SALOME_Exception, SALOME_Exception._NP_RepositoryId, "SALOME_Exception", "details", omniORB.typeMapping["IDL:SALOME/ExceptionStruct:1.0"])
_0_SALOME._tc_SALOME_Exception = omniORB.tcInternal.createTypeCode(_0_SALOME._d_SALOME_Exception)
omniORB.registerType(SALOME_Exception._NP_RepositoryId, _0_SALOME._d_SALOME_Exception, _0_SALOME._tc_SALOME_Exception)
del SALOME_Exception

#
# End of module "SALOME"
#
__name__ = "SALOME_Exception_idl"

_exported_modules = ( "SALOME", )

# The end.
