Class InvalidUsageException
InvalidUsageException is thrown when an invalid usage is detected by the class library.
Inheritance
System.Object
System.Exception
InvalidUsageException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: rfid.api
Assembly: rfid.netcore.dll
Syntax
public class InvalidUsageException : Exception, ISerializable
Remarks
Derived off of the System.Exception class, this exception provides an informaion enum to be associated with the exception, via the Info property.
Constructors
InvalidUsageException(String, String)
InvalidUsageException constructor with settable string and results enum.
Declaration
public InvalidUsageException(string sMessage, string sErrorString)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | sMessage | A string the contains information about the exception. |
| System.String | sErrorString | Error string from string table |
Properties
Info
The RFIDResults associated with the exception.
Declaration
public string Info { get; }
Property Value
| Type | Description |
|---|---|
| System.String | An integer result that contains information about what caused the exception. |
TimeStamp
The timeStamp associated with the exception.
Declaration
public DateTime TimeStamp { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
VendorMessage
The vendor message associated with the exception.
Declaration
public string VendorMessage { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
ToString()
Returns the API3 specific error information along with Standard Exception trace
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | API specific status information |
Overrides
System.Exception.ToString()
Implements
System.Runtime.Serialization.ISerializable