/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.21
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


Class name: CException extends: Exception fields: swigCPtrForCException {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGCExceptionToException: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForCException := newCPtr.
  ]

  Method [ getCPtrForCException
    ^swigCPtrForCException
  ]


  Function [ new
    self noDefaultConstructorError
  ]

  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForCException ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      CslNI cslNI_delete_CException: swigCPtrForCException.
    ].
    swigCPtrForCException := 0.
    super delete.
  ]

  Function[ getCPtr: obj
     obj isNil ifTrue:[^0].
     ^obj getCPtrForCException
  ]

  Method [ setMMessage: mMessage 
    CslNI cslNI_set_CException_mMessage: swigCPtrForCException with: (SwigTypePstring getCPtr: mMessage)
  ]

  Method [ getMMessage 
    ^SwigTypePstring fromPointer: CslNI cslNI_get_CException_mMessage: swigCPtrForCException  memoryOwn: true
  ]

  Function [ msg: msg
    ^self fromPointer: (CslNI cslNI_new_CException: (SwigTypePstring getCPtr: msg)) memoryOwn: true
  ]

}
