CPKIFException.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.orionsec.jpkif;
00010
00011 public class CPKIFException {
00012 private long swigCPtr;
00013 protected boolean swigCMemOwn;
00014
00015 public CPKIFException(long cPtr, boolean cMemoryOwn) {
00016 swigCMemOwn = cMemoryOwn;
00017 swigCPtr = cPtr;
00018 }
00019
00020 public static long getCPtr(CPKIFException obj) {
00021 return (obj == null) ? 0 : obj.swigCPtr;
00022 }
00023
00024 protected void finalize() {
00025 delete();
00026 }
00027
00028 public synchronized void delete() {
00029 if (swigCPtr != 0) {
00030 if (swigCMemOwn) {
00031 swigCMemOwn = false;
00032 pkif_moduleJNI.delete_CPKIFException(swigCPtr);
00033 }
00034 swigCPtr = 0;
00035 }
00036 }
00037
00038 public CPKIFException(CPKIFException e) {
00039 this(pkif_moduleJNI.new_CPKIFException__SWIG_0(CPKIFException.getCPtr(e), e), true);
00040 }
00041
00042 public CPKIFException(int subComponentID, int errorCode) {
00043 this(pkif_moduleJNI.new_CPKIFException__SWIG_1(subComponentID, errorCode), true);
00044 }
00045
00046 public CPKIFException(int subComponentID, int errorCode, String fileName, int lineNumber) {
00047 this(pkif_moduleJNI.new_CPKIFException__SWIG_2(subComponentID, errorCode, fileName, lineNumber), true);
00048 }
00049
00050 public CPKIFException(int subComponentID, int errorCode, String errorDescription) {
00051 this(pkif_moduleJNI.new_CPKIFException__SWIG_3(subComponentID, errorCode, errorDescription), true);
00052 }
00053
00054 public CPKIFException(int subComponentID, int errorCode, String errorDescription, String fileName, int lineNumber) {
00055 this(pkif_moduleJNI.new_CPKIFException__SWIG_4(subComponentID, errorCode, errorDescription, fileName, lineNumber), true);
00056 }
00057
00058 public void push_info(CPKIFException e2) {
00059 pkif_moduleJNI.CPKIFException_push_info(swigCPtr, this, CPKIFException.getCPtr(e2), e2);
00060 }
00061
00062 public void GetExceptionInfos(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ExceptionInfo_t_t v) {
00063 pkif_moduleJNI.CPKIFException_GetExceptionInfos(swigCPtr, this, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_ExceptionInfo_t_t.getCPtr(v));
00064 }
00065
00066 public int GetErrorCode() {
00067 return pkif_moduleJNI.CPKIFException_GetErrorCode(swigCPtr, this);
00068 }
00069
00070 public int GetSubcomponentID() {
00071 return pkif_moduleJNI.CPKIFException_GetSubcomponentID(swigCPtr, this);
00072 }
00073
00074 public String GetDescription() {
00075 return pkif_moduleJNI.CPKIFException_GetDescription(swigCPtr, this);
00076 }
00077
00078 public CPKIFStringPtr print() {
00079 return new CPKIFStringPtr(pkif_moduleJNI.CPKIFException_print(swigCPtr, this), true);
00080 }
00081
00082 }