Package com.stata.sfi
Class SFIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.stata.sfi.SFIException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FrameException
Represents a general exception that encapsulates an error code.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs an instance of SFIException with null as its detail message and 0 as its error code.SFIException
(int errorCode) Constructs an instance of SFIException with the specified error code.SFIException
(String message, int errorCode) Constructs an instance of SFIException with the specified detail message and error code. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SFIException
public SFIException()Constructs an instance of SFIException with null as its detail message and 0 as its error code. -
SFIException
public SFIException(int errorCode) Constructs an instance of SFIException with the specified error code.- Parameters:
errorCode
- The error code.
-
SFIException
Constructs an instance of SFIException with the specified detail message and error code.- Parameters:
message
- The detail message.errorCode
- The error code.
-
-
Method Details
-
getErrorCode
public int getErrorCode()Get the error code.- Returns:
- The value of the error code.
-