Class Kstat2StatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.jna.platform.unix.solaris.Kstat2StatusException
- All Implemented Interfaces:
Serializable
Exception encapsulating
Kstat2 Error Return Values, defined as
kstat2_status values in kstat2.h- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionKstat2StatusException(int ks) New exception fromkstat2_statusprotectedKstat2StatusException(int ks, String msg) New exception fromkstat2_statuswith specified message -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Kstat2StatusException
public Kstat2StatusException(int ks) New exception fromkstat2_status- Parameters:
ks- The return value
-
Kstat2StatusException
New exception fromkstat2_statuswith specified message- Parameters:
ks- The return valuemsg- The exception message
-
-
Method Details
-
getKstat2Status
public int getKstat2Status()- Returns:
- the Kstat2Status code
-