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

namespace be.portugal.eid {

using System;
using System.Runtime.InteropServices;

/// <summary>
/// Exception class File Type Unknown (error code = EIDMW_ERR_FILETYPE_UNKNOWN).
/// Throw when the Raw Data type doesn't exist for this card.
/// Used in : 
/// - PTEID_Card::getRawData(PTEID_RawDataType type)
/// </summary>
public class PTEID_ExFileTypeUnknown : PTEID_Exception {
  private HandleRef swigCPtr;

  internal PTEID_ExFileTypeUnknown(IntPtr cPtr, bool cMemoryOwn) : base(pteidlib_dotNetPINVOKE.PTEID_ExFileTypeUnknownUpcast(cPtr), cMemoryOwn) {
    swigCPtr = new HandleRef(this, cPtr);
  }

  internal static HandleRef getCPtr(PTEID_ExFileTypeUnknown obj) {
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
  }

  ~PTEID_ExFileTypeUnknown() {
    Dispose();
  }

  public override void Dispose() {
    lock(this) {
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
        swigCMemOwn = false;
        pteidlib_dotNetPINVOKE.delete_PTEID_ExFileTypeUnknown(swigCPtr);
      }
      swigCPtr = new HandleRef(null, IntPtr.Zero);
      GC.SuppressFinalize(this);
      base.Dispose();
    }
  }

  public PTEID_ExFileTypeUnknown() : this(pteidlib_dotNetPINVOKE.new_PTEID_ExFileTypeUnknown(), true) {
  }

}

}
