1 2 using System; 3 using Net.Sf.Pkcs11.Wrapper; 4 namespace Net.Sf.Pkcs11 5 { 6 /// <summary> 7 /// Description of TokenException. 8 /// </summary> 9 public class TokenException:Exception 10 { TokenException()11 public TokenException() 12 { 13 } 14 TokenException(CKR errorCode)15 public TokenException(CKR errorCode):base(errorCode.ToString()) 16 { 17 this.errorCode=errorCode; 18 } 19 20 CKR errorCode; 21 22 public CKR ErrorCode { 23 get { return errorCode; } 24 } 25 26 } 27 } 28