Class IPMIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.metricshub.ipmi.core.coding.payload.lan.IPMIException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIPMIException(CompletionCode completionCode) IPMIException(CompletionCode completionCode, int rawCode) IPMIException(CompletionCode completionCode, int rawCode, String description) Creates the exception for a code whose meaning depends on the command: an OEM or command-specific code thatCompletionCodedoes not list. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Describes the error reply as a sentence without its final period: the message, then the completion code in hexadecimal, named once.static StringDescribes a completion code as a sentence without its final period: its meaning, then the code in hexadecimal.intMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IPMIException
-
IPMIException
- Parameters:
completionCode- the decoded completion code,CompletionCode.Unknownfor a code the library does not listrawCode- the completion code byte as the BMC sent it
-
IPMIException
Creates the exception for a code whose meaning depends on the command: an OEM or command-specific code thatCompletionCodedoes not list.- Parameters:
completionCode- the decoded completion code,CompletionCode.Unknownfor a code the library does not listrawCode- the completion code byte as the BMC sent itdescription- the meaning of the code for the command that got it, returned bygetMessage(), or null for the generic text
-
-
Method Details
-
getCompletionCode
-
getRawCode
public int getRawCode()- Returns:
- the completion code byte as the BMC sent it, meaningful when
getCompletionCode()isCompletionCode.Unknown
-
getMessage
- Overrides:
getMessagein classThrowable
-
describe
Describes the error reply as a sentence without its final period: the message, then the completion code in hexadecimal, named once.- Returns:
- the description,
Requested Sensor, data, or record not present (completion code CBh)orCommand-specific completion code 81hfor instance
-
describe
Describes a completion code as a sentence without its final period: its meaning, then the code in hexadecimal.- Parameters:
meaning- the meaning of the code, with or without a final periodrawCode- the completion code byte- Returns:
- the description,
Invalid session handle (completion code 80h)for instance
-