Unosquare
    Show / Hide Table of Contents

    Class StringConversionException

    The exception that is thrown when a conversion from a string to a specified type fails.

    Inheritance
    Object
    StringConversionException
    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 that holds the serialized object data about the exception being thrown.

    StreamingContext context

    The that contains contextual information about the source or destination.

    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.

    See Also

    FromString

    Comments

    Back to top Copyright © 2017-2019 Unosquare