BindException Class
Indicates that an error has occurred while creating a new instance with the XML reader.
public sealed class BindException : Exception
- Inheritance
Constructors
Bind |
Initializes a new instance of the BindException class. |
Bind |
Initializes a new instance of the BindException class, with the specified detail message. |
Bind |
Initializes a new instance of the BindException class, with the specified detail message and cause. |
Bind |
Initializes a new instance of the BindException class, with the specified detail message and the specified location. |
Bind |
Initializes a new instance of the BindException class, with the specified detail message and cause. |
Properties
Line |
Gets the line information. |
Data | (Inherited from Exception) |
HelpLink | (Inherited from Exception) |
HResult | (Inherited from Exception) |
InnerException | (Inherited from Exception) |
Message | (Inherited from Exception) |
Source | (Inherited from Exception) |
StackTrace | (Inherited from Exception) |
Methods
Get |
Gets the message with the location information. |
GetBaseException() | (Inherited from Exception) |
ToString() | (Inherited from Exception) |
Equals(object) | (Inherited from object) |
GetHashCode() | (Inherited from object) |
GetType() | (Inherited from object) |
MemberwiseClone() | (Inherited from object) |
Constructors Detail
BindException()
Initializes a new instance of the BindException class.
public BindException()
BindException(string)
Initializes a new instance of the BindException class, with the specified detail message.
public BindException(string message)
Parameters
- message
- string
The detail message.
BindException(string, Exception)
Initializes a new instance of the BindException class, with the specified detail message and cause.
public BindException(string message, Exception innerException)
Parameters
- message
- string
The detail message.
- innerException
- Exception
The cause.
BindException(string, IXmlLineInfo)
Initializes a new instance of the BindException class, with the specified detail message and the specified location.
public BindException(string message, IXmlLineInfo info)
Parameters
- message
- string
The detail message.
- info
-
IXml
Line Info
The line information.
BindException(string, Exception, IXmlLineInfo)
Initializes a new instance of the BindException class, with the specified detail message and cause.
public BindException(string message, Exception innerException, IXmlLineInfo info)
Parameters
- message
- string
The detail message.
- innerException
- Exception
The cause.
- info
-
IXml
Line Info
The line information.
Properties Detail
LineInfo
Gets the line information.
public IXmlLineInfo LineInfo { get; }
Property Value
Methods Detail
GetFullMessage()
Gets the message with the location information.
public string GetFullMessage()
Returns
The string representation.
Remarks
This method returns the string with the form
"
Line:
Column:
Message"
if the LineInfo has the line information (i.e.
IXmlLineInfo.HasLineInfo() returns true
),
otherwise returns the same as Exception.Message.