Class MetadataException
Defines the base class for the namespace exceptions.
[Serializable]
public class MetadataException : Exception, ISerializable, _Exception
- Inheritance
-
MetadataException
- Implements
- Inherited Members
- Extension Methods
Remarks
This class is the base class for exceptions that may occur during execution of the namespace members.
Constructors
MetadataException()
Initializes a new instance of the MetadataException class.
public MetadataException()
Remarks
This constructor initializes the Message property of the new instance such as "A Build Type exception has occurred."
MetadataException(Exception)
Initializes a new instance of the MetadataException class with the specified InnerException property.
public MetadataException(Exception innerException)
Parameters
innerException
ExceptionThe InnerException, if any, that threw the current exception.
- See Also
MetadataException(SerializationInfo, StreamingContext)
Initializes a new instance of the MetadataException class with serialized data.
protected MetadataException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe object that holds the serialized object data.
context
StreamingContextThe contextual information about the source or destination.
Remarks
This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.
MetadataException(string)
Initializes a new instance of the MetadataException class with the specified error message.
public MetadataException(string message)
Parameters
message
stringThe message to display to the client when the exception is thrown.
- See Also
MetadataException(string, Exception)
Initializes a new instance of the MetadataException class with the specified error message and InnerException property.
public MetadataException(string message, Exception innerException)
Parameters
message
stringThe message to display to the client when the exception is thrown.
innerException
ExceptionThe InnerException, if any, that threw the current exception.
- See Also