Package io.openems.edge.ess.power.api
Class PowerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.openems.common.exceptions.OpenemsError.OpenemsNamedException
-
- io.openems.common.exceptions.OpenemsException
-
- io.openems.edge.ess.power.api.PowerException
-
- All Implemented Interfaces:
java.io.Serializable
public class PowerException extends OpenemsException
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PowerException.Type
-
Constructor Summary
Constructors Constructor Description PowerException(PowerException.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
PowerException.Type
getType()
void
setReason(Constraint reason)
-
Methods inherited from class io.openems.common.exceptions.OpenemsError.OpenemsNamedException
getCode, getError, getParams
-
-
-
-
Constructor Detail
-
PowerException
public PowerException(PowerException.Type type)
-
-
Method Detail
-
getType
public PowerException.Type getType()
-
setReason
public void setReason(Constraint reason)
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-