Class StringConversionException
The exception that is thrown when a conversion from a string to a specified type fails.
Namespace: Swan
Syntax
public class StringConversionException : Exception
Constructors
StringConversionException()
Initializes a new instance of the StringConversionException class.
Declaration
public StringConversionException()
StringConversionException(SerializationInfo, StreamingContext)
Initializes a new instance of the StringConversionException class.
Declaration
protected StringConversionException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The |
StreamingContext | context | The |
StringConversionException(String)
Initializes a new instance of the StringConversionException class.
Declaration
public StringConversionException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
StringConversionException(String, Exception)
Initializes a new instance of the StringConversionException class.
Declaration
public StringConversionException(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 null if no inner exception is specified. |
StringConversionException(Type)
Initializes a new instance of the StringConversionException class.
Declaration
public StringConversionException(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The desired resulting type of the attempted conversion. |
StringConversionException(Type, Exception)
Initializes a new instance of the StringConversionException class.
Declaration
public StringConversionException(Type type, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The desired resulting type of the attempted conversion. |
Exception | innerException | The exception that is the cause of the current exception, or null if no inner exception is specified. |