001/* ---------------------------------------------------------------------------- 002 * This file was automatically generated by SWIG (http://www.swig.org). 003 * Version 2.0.12 004 * 005 * Do not make changes to this file unless you know what you are doing--modify 006 * the SWIG interface file instead. 007 * ----------------------------------------------------------------------------- */ 008 009package org.sbml.libsbml; 010 011/** 012 * Exceptions for libSBML extensions for SBML Level 3 packages. 013 */ 014 015public class SBMLExtensionException { 016 private long swigCPtr; 017 protected boolean swigCMemOwn; 018 019 protected SBMLExtensionException(long cPtr, boolean cMemoryOwn) 020 { 021 swigCMemOwn = cMemoryOwn; 022 swigCPtr = cPtr; 023 } 024 025 protected static long getCPtr(SBMLExtensionException obj) 026 { 027 return (obj == null) ? 0 : obj.swigCPtr; 028 } 029 030 protected static long getCPtrAndDisown (SBMLExtensionException obj) 031 { 032 long ptr = 0; 033 034 if (obj != null) 035 { 036 ptr = obj.swigCPtr; 037 obj.swigCMemOwn = false; 038 } 039 040 return ptr; 041 } 042 043 protected void finalize() { 044 delete(); 045 } 046 047 public synchronized void delete() { 048 if (swigCPtr != 0) { 049 if (swigCMemOwn) { 050 swigCMemOwn = false; 051 libsbmlJNI.delete_SBMLExtensionException(swigCPtr); 052 } 053 swigCPtr = 0; 054 } 055 } 056 057 058/** 059 * constructor 060 */ public 061 SBMLExtensionException(String errmsg) { 062 this(libsbmlJNI.new_SBMLExtensionException(errmsg), true); 063 } 064 065}