com.microfocus.cobol.connector.transport
Class BINPException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.microfocus.cobol.CobolException
              extended bycom.microfocus.cobol.connector.transport.BINPException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BINPApplicationException, BINPClientException, BINPServerException

public abstract class BINPException
extends com.microfocus.cobol.CobolException

Title:

Copyright: Copyright (c) 2002-2003 Company: Micro Focus International Ltd

See Also:
Serialized Form

Constructor Summary
BINPException(String message)
          Construct generic BINPException given a message string
BINPException(String message, Throwable cause)
          Construct generic BINPException given a message string and an cause
 
Method Summary
 Throwable getCause()
          get an associated throwable exception or null if not present
 String getDebugInfo()
          get any associated debug information
 String getErrorClass()
          get the associated error class for this exception
 int getErrorCode()
          get the associated error code with this exception
 String getErrorMessage()
          get the exceptions error message
 short getErrorType()
          get the error type associated with exception as defined in the BINP spec
 Throwable initCause(Throwable parm1)
          associate a throwable exception with this exception
 void printStackTrace()
          printStackTrace
 void printStackTrace(PrintStream parm1)
          printStackTrace to specified PrintStream
 void printStackTrace(PrintWriter parm1)
          printStackTrace to specified printwriter
 void setDebugInfo(String debugInfo)
          associate any debug information with the exception
 void setErrorClass(String errorClass)
          associate a error class with this exception
 void setErrorCode(int errorCode)
          associate a error code with this exception
 void setErrorMessage(String errorMessage)
          set the error message for this exception
 void setErrorType(short errorType)
          set the error type for the exception
 
Methods inherited from class com.microfocus.cobol.CobolException
getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BINPException

public BINPException(String message)
Construct generic BINPException given a message string

Parameters:
message -

BINPException

public BINPException(String message,
                     Throwable cause)
Construct generic BINPException given a message string and an cause

Parameters:
message -
Method Detail

initCause

public Throwable initCause(Throwable parm1)
associate a throwable exception with this exception

Parameters:
parm1 -
Returns:

getCause

public Throwable getCause()
get an associated throwable exception or null if not present

Returns:

printStackTrace

public void printStackTrace(PrintWriter parm1)
printStackTrace to specified printwriter

Parameters:
parm1 -

printStackTrace

public void printStackTrace()
printStackTrace


printStackTrace

public void printStackTrace(PrintStream parm1)
printStackTrace to specified PrintStream

Parameters:
parm1 -

setErrorMessage

public void setErrorMessage(String errorMessage)
set the error message for this exception

Parameters:
errorMessage -

getErrorMessage

public String getErrorMessage()
get the exceptions error message

Returns:
a string

setErrorCode

public void setErrorCode(int errorCode)
associate a error code with this exception

Parameters:
errorCode -

getErrorCode

public int getErrorCode()
get the associated error code with this exception

Returns:

setErrorClass

public void setErrorClass(String errorClass)
associate a error class with this exception

Parameters:
errorClass -

getErrorClass

public String getErrorClass()
get the associated error class for this exception

Returns:

setErrorType

public void setErrorType(short errorType)
set the error type for the exception

Parameters:
errorType -

getErrorType

public short getErrorType()
get the error type associated with exception as defined in the BINP spec

Returns:

setDebugInfo

public void setDebugInfo(String debugInfo)
associate any debug information with the exception

Parameters:
debugInfo -

getDebugInfo

public String getDebugInfo()
get any associated debug information

Returns:



Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.