ComponentException Class

A component threw an exception that no error boundary handled, while rendering or handling an event.

public sealed class ComponentException : Exception
Inheritance
Exception ComponentException

Constructors

NameDescription
ComponentException()Initializes a new instance of the ComponentException class.
ComponentException(string)Initializes a new instance of the ComponentException class.
ComponentException(string, Exception)Initializes a new instance of the ComponentException class.

ComponentException overloads

ComponentException()

ComponentException.cs

Initializes a new instance of the ComponentException class.

public ComponentException()

ComponentException(string)

ComponentException.cs

Initializes a new instance of the ComponentException class.

public ComponentException(string message)
Parameters
message string
The message.

ComponentException(string, Exception)

ComponentException.cs

Initializes a new instance of the ComponentException class.

public ComponentException(string message, Exception innerException)
Parameters
message string
The message.
innerException Exception
The exception thrown by the component.