Interface FaultCode
public interface FaultCode
FaultCode is a general interface modeling fault;
-
Method Summary
Modifier and TypeMethodDescriptionGets descriptionorg.springframework.http.HttpStatusGets statusname()name of the faultdefault CommonRTEtoCommonRTE(String message) ACommonRTEgenerator givendefault CommonRTEtoCommonRTE(String template, Object... args) ACommonRTEgenerator setting the message ofgetDescription()default CommonRTEtoCommonRTE(String template, Map<String, Object> args) ACommonRTEwith message set withgetDescription()with following other parameters.default CommonRTEtoCommonRTE(MessageFormat template, Object... args) ACommonRTEgenerator given
-
Method Details
-
name
String name()name of the fault- Returns:
- name
-
getStatus
org.springframework.http.HttpStatus getStatus()Gets status- Returns:
HttpStatusof the fault
-
getDescription
String getDescription()Gets description- Returns:
- description
-
toCommonRTE
ACommonRTEgenerator given- Parameters:
message- for Exception- Returns:
CommonRTE
-
toCommonRTE
ACommonRTEgenerator setting the message ofgetDescription()- Parameters:
template- for a detailed message that needs variable interpolated based on substitution markersargs- the parameters to be used to replace the markered template- Returns:
CommonRTE
-
toCommonRTE
ACommonRTEwith message set withgetDescription()with following other parameters.- Parameters:
template- for a detailed message that needs variable interpolated based on substitution markersargs- the parameters to be used to replace the markered template- Returns:
CommonRTE
-
toCommonRTE
ACommonRTEgenerator given- Parameters:
template- aformatted detailed messagethat would be processed byMessageFormatargs- the parameters to be used to replace the markers supported byMessageFormat- Returns:
CommonRTE
-