Package org.salespointframework.order
Class OrderCompletionFailure
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.salespointframework.order.OrderCompletionFailure
-
- All Implemented Interfaces:
Serializable
public final class OrderCompletionFailure extends RuntimeException
Exception to be thrown if a listener forOrder.OrderCompleted
event wants to indicate failure of the completion.- Author:
- Oliver Gierke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrderCompletionFailure(OrderCompletionReport report)
Creates a newOrderCompletionFailure
for the givenOrderCompletionReport
.OrderCompletionFailure(Order order, String message)
Creates a newOrderCompletionFailure
for the givenOrder
and message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Order
getOrder()
OrderCompletionReport
getReport()
int
hashCode()
String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
OrderCompletionFailure
public OrderCompletionFailure(Order order, String message)
Creates a newOrderCompletionFailure
for the givenOrder
and message.- Parameters:
order
- must not be null.message
- must not be null.
-
OrderCompletionFailure
public OrderCompletionFailure(OrderCompletionReport report)
Creates a newOrderCompletionFailure
for the givenOrderCompletionReport
.- Parameters:
report
- must not be null.
-
-
Method Detail
-
getOrder
public Order getOrder()
-
getReport
public OrderCompletionReport getReport()
-
canEqual
protected boolean canEqual(Object other)
-
-