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.OrderCompletedevent wants to indicate failure of the completion.- Author:
- Oliver Gierke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrderCompletionFailure(OrderCompletionReport report)Creates a newOrderCompletionFailurefor the givenOrderCompletionReport.OrderCompletionFailure(Order order, String message)Creates a newOrderCompletionFailurefor the givenOrderand message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)OrdergetOrder()OrderCompletionReportgetReport()inthashCode()StringtoString()-
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 newOrderCompletionFailurefor the givenOrderand message.- Parameters:
order- must not be null.message- must not be null.
-
OrderCompletionFailure
public OrderCompletionFailure(OrderCompletionReport report)
Creates a newOrderCompletionFailurefor the givenOrderCompletionReport.- Parameters:
report- must not be null.
-
-
Method Detail
-
getOrder
public Order getOrder()
-
getReport
public OrderCompletionReport getReport()
-
canEqual
protected boolean canEqual(Object other)
-
-