Class ServiceExceptionDetail
- java.lang.Object
-
- com.hybris.cis.client.shared.exception.codes.ServiceExceptionDetail
-
- Direct Known Subclasses:
UnknownServiceExceptionDetail
public class ServiceExceptionDetail extends java.lang.Object
A 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 boolean
equals(java.lang.Object obj)
Overridden equals that includes the comparison of service exception details.int
getCode()
java.lang.String
getMessage()
int
hashCode()
Overridden hashCode method which takes the message and an arbitrary hash as base.java.lang.String
toString()
-
-
-
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:
toString
in 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Overridden equals that includes the comparison of service exception details.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- an object
-
-