InvalidContentException Constructor (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.

Namespace: Microsoft.Xna.Framework.Content.Pipeline
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public InvalidContentException (
         string message,
         ContentIdentity contentIdentity,
         Exception innerException
)

Parameters

  • message
    A message that describes the error.
  • contentIdentity
    Information about the content item that caused this error, including the file name. In some cases, a location within the file (of the problem) is specified.
  • innerException
    The exception that is the cause of the current exception. If innerException is not a null reference, the current exception is raised in a catch block that handles the inner exception.

See Also

Reference

InvalidContentException Class
InvalidContentException Members
Microsoft.Xna.Framework.Content.Pipeline Namespace

Platforms

Windows XP SP2, Windows Vista