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
public class SFIException extends Exception
Represents a general exception that encapsulates an error code.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SFIException()
Constructs 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
Get the error code.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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
public SFIException(String message, int errorCode)
Constructs an instance of SFIException with the specified detail message and error code.- Parameters:
message
- The detail message.errorCode
- The error code.
-
-