javax.microedition.ipdr
Class ConnectionIOException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjavax.microedition.ipdr.ConnectionIOException
All Implemented Interfaces:
java.io.Serializable

public final class ConnectionIOException
extends java.io.IOException

Represents an exception that is thrown when an I/O error occurs during reading or writing via the TCP connection.

Exception thrown when an I/O error happens during reading or writing via the TCP connection. Contains extra context information regarding what was going on, which helps in understanding problems.

Version:
1.0
Author:
Shai Gotlib

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
ConnectionIOException(java.lang.String msg)
          Creates an exception, with a message only
ConnectionIOException(java.lang.String msg, ConnectionConfig connectionConfig, java.lang.Throwable cause)
          Creates an exception, with the message, the connnection configuration, and the underlying error.
ConnectionIOException(java.lang.String msg, java.lang.Throwable cause)
          Creates an exception, with a message and the underlying error.
 
Method Summary
 java.lang.Throwable getCause()
          Gets the underlying cause.
 java.lang.String getOriginalMsg()
          Gets the original message (without the extra stuff from the connection et al).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionIOException

public ConnectionIOException(java.lang.String msg,
                             ConnectionConfig connectionConfig,
                             java.lang.Throwable cause)
Creates an exception, with the message, the connnection configuration, and the underlying error.

Parameters:
msg - The message that describes What went wrong.
connectionConfig - The connection configuration
cause - The I/O exception.

ConnectionIOException

public ConnectionIOException(java.lang.String msg)
Creates an exception, with a message only

Parameters:
msg - The message that describes What went wrong.

ConnectionIOException

public ConnectionIOException(java.lang.String msg,
                             java.lang.Throwable cause)
Creates an exception, with a message and the underlying error.

Parameters:
msg - The message that describes What went wrong.
cause - The I/O Exception
Method Detail

getCause

public java.lang.Throwable getCause()
Gets the underlying cause.

Returns:
The cause.

getOriginalMsg

public java.lang.String getOriginalMsg()
Gets the original message (without the extra stuff from the connection et al).

Returns:
originalMsg the message that was given to the constructor.