17 : base(
Environment.GetResourceString(
"Arg_ExternalException"))
19 SetErrorCode(-2147467259);
27 SetErrorCode(-2147467259);
34 : base(message, inner)
36 SetErrorCode(-2147467259);
45 SetErrorCode(errorCode);
65 if (!
string.IsNullOrEmpty(message))
67 text = text +
": " + message;
70 if (innerException !=
null)
72 text = text +
" ---> " + innerException.
ToString();
override string ToString()
Creates and returns a string representation of the current exception.
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
static string NewLine
Gets the newline string defined for this environment.
Serves as the base class for system exceptions namespace.
new Type GetType()
Gets the runtime type of the current instance.
override string ToString()
Returns a String representing the name of the current Type.
ExternalException(string message, int errorCode)
Initializes a new instance of the ExternalException class with a specified error message and the HRES...
Describes the source and destination of a given serialized stream, and provides an additional caller-...
Provides information about, and means to manipulate, the current environment and platform....
virtual string StackTrace
Gets a string representation of the immediate frames on the call stack.
Exception InnerException
Gets the T:System.Exception instance that caused the current exception.
ExternalException(string message)
Initializes a new instance of the ExternalException class with a specified error message.
override string ToString()
Returns a string that contains the HRESULT of the error.
virtual string Message
Gets a message that describes the current exception.
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
ExternalException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the ExternalException class from serialization data.
The base exception type for all COM interop exceptions and structured exception handling (SEH) except...
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
ExternalException(string message, Exception inner)
Initializes a new instance of the T:System.Runtime.InteropServices.ExternalException class with a spe...
Specifies that the class can be serialized.
virtual int ErrorCode
Gets the HRESULT of the error.
Provides information about a specific culture (called a locale for unmanaged code development)....
ExternalException()
Initializes a new instance of the ExternalException class with default properties.