Class ServiceExceptionDetail
- java.lang.Object
-
- com.hybris.cis.client.shared.exception.codes.ServiceExceptionDetail
-
- Direct Known Subclasses:
UnknownServiceExceptionDetail
public class ServiceExceptionDetail extends java.lang.ObjectA service exception detail consists of a standard exception code and an additional message.
-
-
Constructor Summary
Constructors Constructor Description ServiceExceptionDetail(StandardServiceExceptionCode code)Instantiates a newServiceExceptionDetail.ServiceExceptionDetail(StandardServiceExceptionCode code, java.lang.String message)Instantiates a newServiceExceptionDetail.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Overridden equals that includes the comparison of service exception details.intgetCode()java.lang.StringgetMessage()inthashCode()Overridden hashCode method which takes the message and an arbitrary hash as base.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ServiceExceptionDetail
public ServiceExceptionDetail(StandardServiceExceptionCode code)
Instantiates a newServiceExceptionDetail.- Parameters:
code- a standard error code specified per module type
-
ServiceExceptionDetail
public ServiceExceptionDetail(StandardServiceExceptionCode code, java.lang.String message)
Instantiates a newServiceExceptionDetail.- Parameters:
code- a standard error code specified per module typemessage- a message explaining the error
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getCode
public int getCode()
-
hashCode
public int hashCode()
Overridden hashCode method which takes the message and an arbitrary hash as base.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Overridden equals that includes the comparison of service exception details.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- an object
-
-