Table of Contents

Class EmbeddedResourceNotFoundException

Namespace
CMS.Tests
Assembly
CMS.Tests.dll

Exception thrown where it is not possible to find or extract an embedded resource.

public class EmbeddedResourceNotFoundException : Exception
Inheritance
object
Exception
EmbeddedResourceNotFoundException
Extension Methods

Constructors

EmbeddedResourceNotFoundException(string)

Initializes a new instance of the EmbeddedResourceNotFoundException class with default values.

public EmbeddedResourceNotFoundException(string embeddedResourceName)

Parameters

embeddedResourceName string

Name of the missing resource (see EmbeddedResourceName).

Remarks

Default error message (including value of embeddedResourceName) is used.

EmbeddedResourceNotFoundException(string, string)

Initializes a new instance of the EmbeddedResourceNotFoundException class with a specified error message.

public EmbeddedResourceNotFoundException(string embeddedResourceName, string message)

Parameters

embeddedResourceName string

Name of the missing resource (see EmbeddedResourceName).

message string

The message that describes the error.

EmbeddedResourceNotFoundException(string, string, Exception)

Initializes a new instance of the EmbeddedResourceNotFoundException class with default values.

public EmbeddedResourceNotFoundException(string embeddedResourceName, string message, Exception innerException)

Parameters

embeddedResourceName string

Name of the missing resource (see EmbeddedResourceName).

message string

The message that describes the error.

innerException Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Properties

EmbeddedResourceName

Name of the resource, usually only partial (without name-space prefix).

public string EmbeddedResourceName { get; }

Property Value

string

Methods

GetErrorMessage(string)

Returns error message with embedded resource name incorporated within.

protected static string GetErrorMessage(string resourceName)

Parameters

resourceName string

Name or partial name of the resource.

Returns

string

Remarks

Message is always in English.