Class PanicException
Represents an internal exception that in theory should never been thrown, it is only thrown in circumstances that should never happen.
Inheritance
Namespace: Umbraco.Cms.Core.Exceptions
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
public class PanicException : Exception
Constructors
View SourcePanicException()
Initializes a new instance of the PanicException class.
Declaration
public PanicException()
PanicException(SerializationInfo, StreamingContext)
Initializes a new instance of the PanicException class.
Declaration
protected PanicException(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
| StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
PanicException(string)
Initializes a new instance of the PanicException class.
Declaration
public PanicException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
PanicException(string, Exception)
Initializes a new instance of the PanicException class.
Declaration
public PanicException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message that explains the reason for the exception. |
| Exception | innerException | The exception that is the cause of the current exception, or a null reference (
|