New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.Taskbar

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ErrorManager

Inheritance: objectErrorManager

Constructors

C#
public ErrorManager()

Properties

C#
public static ErrorManager Instance { get; set; }
C#
public bool ThrowExceptionOnError { get; set; }

Methods

C#
public virtual void ArgumentError(string message, string paramName)
Parameters:messagestringparamNamestring
C#
public virtual void ArgumentNullError(string paramName, string message)
Parameters:paramNamestringmessagestring
C#
public virtual void ArgumentNullError(string paramName)
Parameters:paramNamestring
C#
public virtual void Error(Exception exception)
Parameters:exceptionException
C#
public virtual void ExternalError(int errorCode)
Parameters:errorCodeint
C#
public virtual void ExternalError(string message, Exception inner)
Parameters:messagestringinnerException
C#
public virtual void ExternalError(string message, int errorCode)
Parameters:messagestringerrorCodeint
C#
public virtual void FileNotFoundError(string path)
Parameters:pathstring
C#
public virtual void NotSupportedWindowsError()

Notifies that an exception is about to be thrown. This method allows to handle each exception separately and/or log them. Note that if ThrowExceptionOnError is set to false this method will not be fired.

C#
protected virtual bool OnError(Exception ex)
Parameters:exException

The exception.

Returns:

bool

A value indicating whether to throw the exception. Default value is true.