InvalidContentException Class (Microsoft.Xna.Framework.Content.Pipeline)
Thrown when errors are encountered in content during processing.
Namespace: Microsoft.Xna.Framework.Content.Pipeline
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
- C#
- VB
- F#
[SerializableAttribute] public class InvalidContentException : Exception
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
The InvalidContentException type exposes the following members.
Platforms | Name | Description | |
---|---|---|---|
InvalidContentException() | Initializes a new instance of the InvalidContentException class | ||
InvalidContentException(SerializationInfo, StreamingContext) | Initializes a new instance of the InvalidContentException class with information on serialization and streaming context for the related content item. | ||
InvalidContentException(string) | Initializes a new instance of the InvalidContentException class with the specified error message. | ||
InvalidContentException(string, ContentIdentity) | Initializes a new instance of the InvalidContentException class with the specified error message and the identity of the content throwing the exception. | ||
InvalidContentException(string, ContentIdentity, Exception) | Initializes a new instance of the InvalidContentException class with the specified error message, the identity of the content throwing the exception, and a reference to the inner exception that is the cause of this exception. | ||
InvalidContentException(string, Exception) | Initializes a new instance of the InvalidContentException class with the specified error message and a reference to the inner exception that is the cause of this exception. |
Platforms | Name | Description | |
---|---|---|---|
ContentIdentity | Gets or sets the identity of the content item that caused the exception. |
Platforms | Name | Description | |
---|---|---|---|
GetObjectData | When overridden in a derived class, returns information about the exception. In addition to the base behavior, this method provides serialization functionality. (Overrides Exception.GetObjectData().) |
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop