Package org.metricshub.ipmi.client
Class IpmiCompletionCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.metricshub.ipmi.client.IpmiClientException
org.metricshub.ipmi.client.IpmiCompletionCodeException
- All Implemented Interfaces:
Serializable
The BMC answered a command with an error completion code (IPMI 2.0 table 5-2).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIpmiCompletionCodeException(String what, IPMIException cause) Creates the exception for an error reply received in the course of an operation, when the command the BMC answered is not known.IpmiCompletionCodeException(IpmiCommandCoder<?> request, IPMIException cause) Creates the exception for the error reply to a command. -
Method Summary
Modifier and TypeMethodDescriptionintcommand()Returns the command code of the command the BMC answered.Returns the completion code,CompletionCode.Unknownwhen the library does not model it.Returns the network function of the command the BMC answered.intReturns the completion code byte as the BMC sent it, for the codes the library does not model (the command-specific and OEM ones).Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IpmiCompletionCodeException
Creates the exception for the error reply to a command.- Parameters:
request- the command the BMC answeredcause- the error reply
-
IpmiCompletionCodeException
Creates the exception for an error reply received in the course of an operation, when the command the BMC answered is not known.- Parameters:
what- what the operation was doingcause- the error reply
-
-
Method Details
-
completionCode
Returns the completion code,CompletionCode.Unknownwhen the library does not model it.- Returns:
- the completion code
-
rawCompletionCode
public int rawCompletionCode()Returns the completion code byte as the BMC sent it, for the codes the library does not model (the command-specific and OEM ones).- Returns:
- the completion code, 0 to 255
-
networkFunction
Returns the network function of the command the BMC answered.- Returns:
- the network function, or null when the command is not known or its network function is one
NetworkFunctiondoes not list (an extension or OEM command)
-
command
public int command()Returns the command code of the command the BMC answered.- Returns:
- the command code, 0 to 255, or -1 when the command is not known
-