/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.19
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package SimbodyAPI;


public class APIMethodFailed {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected APIMethodFailed(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected APIMethodFailed() {
    this(0, false);
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      ModelJNI.delete_APIMethodFailed(swigCPtr);
      swigCMemOwn = false;
    }
    swigCPtr = 0;
  }

  protected static long getCPtr(APIMethodFailed obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  public APIMethodFailed(String fn, int ln, String method, String cause) {
    this(ModelJNI.new_APIMethodFailed(fn, ln, method, cause), true);
  }

}
