Class PortableException
A PortableException is an exception that allows information about a remote exception to be serialized and deserialized to/from a POF stream.
Inheritance
Inherited Members
Namespace: Tangosol.IO.Pof
Assembly: Coherence.dll
Syntax
[Serializable]
public class PortableException : Exception, IPortableObject, ISerializable
Constructors
PortableException()
Default constructor.
Declaration
public PortableException()
PortableException(Exception)
Construct a PortableException from an Exception object.
Declaration
public PortableException(Exception e)
Parameters
Type | Name | Description |
---|---|---|
Exception | e | The Exception object. |
PortableException(SerializationInfo, StreamingContext)
Construct a PortableException class with serialized data.
Declaration
public PortableException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
PortableException(string)
Constructs a PortableException with the specified detail message.
Declaration
public PortableException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The string that contains a detailed message. |
PortableException(string, Exception)
Construct a PortableException from an Exception object and an additional description.
Declaration
public PortableException(string message, Exception e)
Parameters
Type | Name | Description |
---|---|---|
string | message | The additional description. |
Exception | e | The Exception object. |
Fields
m_arrStackRemote
A raw representation of the remote stack trace for this exception.
Declaration
protected string[] m_arrStackRemote
Field Value
Type | Description |
---|---|
string[] |
m_innerException
An Exception that caused current exception.
Declaration
protected Exception m_innerException
Field Value
Type | Description |
---|---|
Exception |
m_message
The exception's message.
Declaration
protected string m_message
Field Value
Type | Description |
---|---|
string |
m_name
The exception's name.
Declaration
protected string m_name
Field Value
Type | Description |
---|---|
string |
Properties
FullStackTrace
An array of strings containing the full representation of the stack trace.
Declaration
public virtual string[] FullStackTrace { get; }
Property Value
Type | Description |
---|---|
string[] | The full stack trace. |
Remarks
The first element of the stack represents the exception's point of origin.
InnerException
The Exception that caused this exception.
Declaration
public virtual Exception InnerException { get; set; }
Property Value
Type | Description |
---|---|
Exception | An exception that caused this exception. |
Message
A message that describes the current exception.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
string | The error message that explains the reason for the exception, or an empty string. |
Overrides
Name
The name of the exception.
Declaration
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string | The name of the exception. |
StackTrace
A string representation of the frames on the call stack at the time the current exception was thrown.
Declaration
public override string StackTrace { get; }
Property Value
Type | Description |
---|---|
string | A string that describes the contents of the call stack, with the most recent method call appearing first. |
Overrides
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
Overrides
ReadExternal(IPofReader)
Restore the contents of a user type instance by reading its state using the specified IPofReader object.
Declaration
public virtual void ReadExternal(IPofReader reader)
Parameters
Type | Name | Description |
---|---|---|
IPofReader | reader | The IPofReader from which to read the object's state. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |
ToString()
Returns a string representation of the current exception.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of the current exception. |
Overrides
WriteExternal(IPofWriter)
Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.
Declaration
public virtual void WriteExternal(IPofWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IPofWriter | writer | The IPofWriter to which to write the object's state. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |