com.sas.net.connect
Class ConnectException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sas.net.util.WrapperException
                    |
                    +--com.sas.net.connect.ConnectException
All Implemented Interfaces:
Direct Known Subclasses:
ConnectLogException

public class ConnectException
extends WrapperException

The ConnectException class provides information about a SAS/CONNECT driver for Java error.

Each ConnectException provides the following:

See Also:
Serialized Form

Constructor Summary
ConnectException()
          No-argument constructor.
ConnectException(int code, String reason)
          Constructs a ConnectException object.
ConnectException(String reason)
          Constructs a ConnectException object.
ConnectException(String message, Throwable nestedException)
          Wrapper constructor.
ConnectException(Throwable nestedException)
          Wrapper constructor.
 
Method Summary
 int getErrorCode()
          Gets the exception code.
 
Methods inherited from class com.sas.net.util.WrapperException
fillInStackTrace, getLocalizedMessage, getMessage, getNestedException, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
getCause, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectException

public ConnectException(int code,
                        String reason)
Constructs a ConnectException object.
Parameters:
reason - A description of the exception.
code - A specific exception code.

ConnectException

public ConnectException(String reason)
Constructs a ConnectException object.
Parameters:
reason - A description of the exception.

ConnectException

public ConnectException()
No-argument constructor.

ConnectException

public ConnectException(Throwable nestedException)
Wrapper constructor.
Parameters:
nestedException - exception being wrapped

ConnectException

public ConnectException(String message,
                        Throwable nestedException)
Wrapper constructor.
Parameters:
message - a message to include in the exception.
nestedException - an exception being wrapped.
Method Detail

getErrorCode

public int getErrorCode()
Gets the exception code.
Returns:
The ConnectException's code value.



Copyright © 2003 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 09 Jul 2004 16:13:36