Class ExceptionManager
All unhandled exceptions are routed through this class when EPiServer error handling is enabled.
Inheritance
System.Object
ExceptionManager
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration(typeof(IExceptionManager))]
public class ExceptionManager : IExceptionManager
Constructors
ExceptionManager()
Declaration
public ExceptionManager()
Methods
ProtectDataForPosting(String)
Encrypts the data so that a user or spam agent can not alter this information.
Declaration
[Obsolete("Posting protected data has been removed from the exception manager class")]
public static string ProtectDataForPosting(string data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | data | The data to encrypt. |
Returns
| Type | Description |
|---|---|
| System.String | An encrypted string represenration of the original string. |
RenderHttpRuntimeError(Exception)
Renders an error message to the user based on the exception.
Declaration
public static void RenderHttpRuntimeError(Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Exception | exception | The exception |
Remarks
The actual exception message may not be rendered depending on the current user access rights.
UnProtectPostedData(String)
Decrypts a string that has been encrypted with the ProtectDataForPosting method.
Declaration
[Obsolete("Posting protected data has been removed from the exception manager class")]
public static string UnProtectPostedData(string data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | data | The string to decrypt. |
Returns
| Type | Description |
|---|---|
| System.String | The original unencrypted string. |
Explicit Interface Implementations
IExceptionManager.RenderHttpRuntimeError(Exception)
Renders an error message to the user based on the exception.
Declaration
void IExceptionManager.RenderHttpRuntimeError(Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Exception | exception | The exception |
Remarks
The actual exception message may not be rendered depending on the current user access rights.