Class EmbeddedResourceNotFoundException
Exception thrown where it is not possible to find or extract an embedded resource.
public class EmbeddedResourceNotFoundException : Exception
- Inheritance
-
objectExceptionEmbeddedResourceNotFoundException
- Extension Methods
Constructors
EmbeddedResourceNotFoundException(string)
Initializes a new instance of the EmbeddedResourceNotFoundException class with default values.
public EmbeddedResourceNotFoundException(string embeddedResourceName)
Parameters
embeddedResourceName
stringName 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
stringName of the missing resource (see EmbeddedResourceName).
message
stringThe 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
stringName of the missing resource (see EmbeddedResourceName).
message
stringThe message that describes the error.
innerException
ExceptionThe 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
stringName or partial name of the resource.
Returns
- string
Remarks
Message is always in English.