|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.microfocus.cobol.CobolException
This exception is thrown by various methods when COBOL has caused an exception
Copyright: Copyright (c) 2002-2003
Constructor Summary | |
CobolException()
Construct a CobolException with no message or cause. |
|
CobolException(String s)
Construct a CobolException with a given message and no cause |
|
CobolException(String s,
Throwable cause)
Constructs a CobolException with a given message and the cause of the exception |
|
CobolException(Throwable cause)
Constructs a CobolException that wraps the cause of the real exception |
Method Summary | |
Throwable |
getCause()
Returns the cause of this throwable or null if the cause is nonexistent or unknown. |
String |
getMessage()
get the exception message (also shows messages associated with the cause of the exception) |
Throwable |
initCause(Throwable cause)
Initializes the cause of this throwable to the specified value. |
void |
printStackTrace()
Prints this CobolException and its backtrace to the standard error stream and if a cause was specified this is also written to the standard error stream. |
void |
printStackTrace(PrintStream s)
Prints this CobolException and its backtrace to the given print stream and if a cause was specified this is also written to the print stream. |
void |
printStackTrace(PrintWriter s)
Prints this CobolException and its backtrace to the given print writer and if a cause was specified this is also written to the print writer stream. |
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 |
public CobolException()
public CobolException(String s)
s
- messagepublic CobolException(String s, Throwable cause)
s
- messagecause
- reason for the exceptioninitCause(java.lang.Throwable)
public CobolException(Throwable cause)
cause
- reason for the exceptioninitCause(java.lang.Throwable)
Method Detail |
public Throwable initCause(Throwable cause)
cause
- of exception
Throwable
,
Exception
,
Error
public Throwable getCause()
Throwable
,
Exception
,
Error
public void printStackTrace()
public void printStackTrace(PrintStream s)
s
- - PrintStream to use for outputpublic void printStackTrace(PrintWriter s)
s
- - PrintWriter to use for outputpublic String getMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.