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
innerExceptionExceptionThe 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
infoSerializationInfoThe object that holds the serialized object data.
contextStreamingContextThe 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
messagestringThe 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
messagestringThe message to display to the client when the exception is thrown.
innerExceptionExceptionThe InnerException, if any, that threw the current exception.
- See Also