Top Description Fields Constructors Methods
com.sun.jna.platform.unix.solaris

public Class Kstat2StatusException

extends RuntimeException
Class Inheritance
Imports
com.sun.jna.Native

Exception encapsulating Kstat2 Error Return Values, defined as kstat2_status values in kstat2.h

Field Summary

Modifier and TypeField and Description
private final int
private static final long

Constructor Summary

AccessConstructor and Description
public
Kstat2StatusException(int
The return value
ks
)

New exception from kstat2_status

protected
Kstat2StatusException(int
The return value
ks
,
String
The exception message
msg
)

New exception from kstat2_status with specified message

Method Summary

Modifier and TypeMethod and Description
private static String
formatMessage(int ks)

public int

Returns:

the Kstat2Status code
getKstat2Status
()

Field Detail

kstat2Statusback to summary
private final int kstat2Status
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

Kstat2StatusExceptionback to summary
public Kstat2StatusException(int ks)

New exception from kstat2_status

Parameters
ks:int

The return value

Kstat2StatusExceptionback to summary
protected Kstat2StatusException(int ks, String msg)

New exception from kstat2_status with specified message

Parameters
ks:int

The return value

msg:String

The exception message

Method Detail

formatMessageback to summary
private static String formatMessage(int ks)
getKstat2Statusback to summary
public int getKstat2Status()
Returns:int

the Kstat2Status code