Class StateNotFoundException
An exception that is thrown when a problem occurs find State.
Implements
Inherited Members
Namespace: SpiceSharp
Assembly: SpiceSharp.dll
Syntax
[Serializable]
public class StateNotFoundException : SpiceSharpException, ISerializable
Constructors
StateNotFoundException()
Initializes a new instance of the StateNotFoundException class.
Declaration
public StateNotFoundException()
StateNotFoundException(SerializationInfo, StreamingContext)
Initializes a new instance of the TypeNotFoundException class.
Declaration
protected StateNotFoundException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The serialization info. |
StreamingContext | context | The streaming context. |
StateNotFoundException(string)
Initializes a new instance of the StateNotFoundException class.
Declaration
public StateNotFoundException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message that describes the error. |
StateNotFoundException(string, Exception)
Initializes a new instance of the StateNotFoundException class.
Declaration
public StateNotFoundException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception. |
Exception | innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
StateNotFoundException(string, string)
Initializes a new instance of the StateNotFoundException class.
Declaration
public StateNotFoundException(string state, string message)
Parameters
Type | Name | Description |
---|---|---|
string | state | The name of the state type. |
string | message | The message. |
StateNotFoundException(string, string, Exception)
Initializes a new instance of the StateNotFoundException class.
Declaration
public StateNotFoundException(string state, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | state | The name of the state type. |
string | message | The message. |
Exception | innerException | The inner exception. |
Properties
State
Gets the name of the State.
Declaration
public string State { get; }
Property Value
Type | Description |
---|---|
string | The name. |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The serialization info |
StreamingContext | context | The streaming context |