Package com.chilkatsoft.chilkat2
Class ChilkatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.chilkatsoft.chilkat2.ChilkatException
- All Implemented Interfaces:
Serializable
Thrown when a Chilkat method fails: a status method that returned false, or a string- or
object-returning method that returned nothing (except the methods documented as returning
null when not found, which do not throw).
The exception is self-contained: getLastErrorText() is a copy of the object's
LastErrorText taken at the moment of failure (the object's own copy is overwritten by its
next call), and Throwable.getMessage() is a one-line summary built from it.
Unchecked (RuntimeException): the calls are I/O and cryptographic operations whose
failure a caller handles at the boundary it chooses.
- See Also:
- Serialized Form
-
Method Summary
Modifier and TypeMethodDescriptionThe Chilkat class of the object whose method failed, such asHttp.The fullLastErrorTextof the failed call, captured when it failed: what the library did and why it stopped.The Java name of the method that failed, such asquickGetStr.The one-line reason used inThrowable.getMessage(): the last line ofLastErrorTextthat is a sentence rather than a structural line (--X,ChilkatLog:,name: value).Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getClassName
The Chilkat class of the object whose method failed, such asHttp.- Returns:
- the class name
-
getMethodName
The Java name of the method that failed, such asquickGetStr.- Returns:
- the method name
-
getLastErrorText
The fullLastErrorTextof the failed call, captured when it failed: what the library did and why it stopped.- Returns:
- the text log of the failed call
-
getReason
The one-line reason used inThrowable.getMessage(): the last line ofLastErrorTextthat is a sentence rather than a structural line (--X,ChilkatLog:,name: value).- Returns:
- the reason line, or a pointer to
getLastErrorText()when none is found
-