Table of Contents

Class ExceptionRaiser

Namespace
Heleonix.Guard
Assembly
Heleonix.Guard.dll

Provides raising of exceptions with building of conditions to throw them.

public class ExceptionRaiser
Inheritance
ExceptionRaiser
Inherited Members

Methods

AggregateException(bool, string, params Exception[])

public void AggregateException(bool when, string message = null, params Exception[] innerExceptions)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerExceptions Exception[]

The inner exceptions.

AmbiguousMatchException(bool, string, Exception)

public void AmbiguousMatchException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

ArgumentException(bool, string, string, Exception)

public void ArgumentException(bool when, string message = null, string paramName = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.A condition to throw the exception.

message string

The message.

paramName string

Name of the parameter.

innerException Exception

The inner exception.

ArgumentNullException(bool, string, Exception)

public void ArgumentNullException(bool when, string message, Exception innerException)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

ArgumentNullException(bool, string, string)

public void ArgumentNullException(bool when, string paramName = null, string message = null)

Parameters

when bool

A condition to throw the exception.

paramName string

Name of the parameter.

message string

The message.

ArgumentOutOfRangeException(bool, string, Exception)

public void ArgumentOutOfRangeException(bool when, string message, Exception innerException)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

ArgumentOutOfRangeException(bool, string, object, string)

public void ArgumentOutOfRangeException(bool when, string paramName = null, object actualValue = null, string message = null)

Parameters

when bool

A condition to throw the exception.

paramName string

Name of the parameter.

actualValue object

The value of the argument that causes this exception.

message string

The message.

AuthenticationException(bool, string, Exception)

public void AuthenticationException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

DirectoryNotFoundException(bool, string, Exception)

public void DirectoryNotFoundException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

DllNotFoundException(bool, string, Exception)

public void DllNotFoundException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

DriveNotFoundException(bool, string, Exception)

public void DriveNotFoundException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

Exception(bool, string, Exception)

Raises the Exception.

public void Exception(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

FileLoadException(bool, string, string, Exception)

public void FileLoadException(bool when, string message = null, string fileName = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

fileName string

The file name.

innerException Exception

The inner exception.

FileNotFoundException(bool, string, string, Exception)

public void FileNotFoundException(bool when, string message = null, string fileName = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

fileName string

The file name.

innerException Exception

The inner exception.

FormatException(bool, string, Exception)

public void FormatException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

IndexOutOfRangeException(bool, string, Exception)

public void IndexOutOfRangeException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

InvalidCastException(bool, string, Exception)

public void InvalidCastException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

InvalidCastException(bool, string, int)

public void InvalidCastException(bool when, string message, int errorCode)

Parameters

when bool

A condition to throw the exception.

message string

The message.

errorCode int

The error code (HRESULT).

InvalidCredentialException(bool, string, Exception)

public void InvalidCredentialException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

InvalidDataException(bool, string, Exception)

public void InvalidDataException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

InvalidOperationException(bool, string, Exception)

public void InvalidOperationException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

KeyNotFoundException(bool, string, Exception)

public void KeyNotFoundException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

MissingFieldException(bool, string, Exception)

public void MissingFieldException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

MissingFieldException(bool, string, string)

public void MissingFieldException(bool when, string className = null, string fieldName = null)

Parameters

when bool

A condition to throw the exception.

className string

The class name.

fieldName string

The field name.

MissingMemberException(bool, string, Exception)

public void MissingMemberException(bool when, string message, Exception innerException)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

MissingMemberException(bool, string, string)

public void MissingMemberException(bool when, string className = null, string memberName = null)

Parameters

when bool

A condition to throw the exception.

className string

The class name.

memberName string

The member name.

MissingMethodException(bool, string, Exception)

public void MissingMethodException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

MissingMethodException(bool, string, string)

public void MissingMethodException(bool when, string className = null, string methodName = null)

Parameters

when bool

A condition to throw the exception.

className string

The class name.

methodName string

The method name.

NotImplementedException(bool, string, Exception)

public void NotImplementedException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

NotSupportedException(bool, string, Exception)

public void NotSupportedException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

NullReferenceException(bool, string, Exception)

public void NullReferenceException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

OperationCanceledException(bool, string, Exception, CancellationToken?)

public void OperationCanceledException(bool when, string message = null, Exception innerException = null, CancellationToken? token = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

token CancellationToken?

The cancellation token.

PathTooLongException(bool, string, Exception)

public void PathTooLongException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

SerializationException(bool, string, Exception)

public void SerializationException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

TaskCanceledException(bool, string, Exception)

public void TaskCanceledException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

TaskCanceledException(bool, Task)

public void TaskCanceledException(bool when, Task task)

Parameters

when bool

A condition to throw the exception.

task Task

The task.

TimeoutException(bool, string, Exception)

public void TimeoutException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

TypeLoadException(bool, string, Exception)

public void TypeLoadException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.

UnauthorizedAccessException(bool, string, Exception)

public void UnauthorizedAccessException(bool when, string message = null, Exception innerException = null)

Parameters

when bool

A condition to throw the exception.

message string

The message.

innerException Exception

The inner exception.