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:
- A string describing the error. This is used as the Java Exception
message, and is available via the getMessage() method.
- An error code.
- See Also:
- Serialized Form
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.
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