Package com.onenetwork.platform.common
Class ErrorDef
java.lang.Object
com.onenetwork.platform.common.ErrorDef
- All Implemented Interfaces:
StatusMessage
- Direct Known Subclasses:
EDI824ErrorDef
,EDIErrorDef
public class ErrorDef extends java.lang.Object implements StatusMessage
TODO complete the class documentation
-
Constructor Summary
Constructors Constructor Description ErrorDef()
-
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>
getArgs()
If the message value was created using a format which included arguments, this contains those argumentsint
getMajorCode()
Returns a "major error code" which describes the issue - for internal platform issues, this number can be used to get support.java.lang.String
getMessage()
int
getMinorCode()
Returns a "minor error code" which further qualifies the major error code.java.lang.String
getValue()
Returns the content of the messageboolean
isSetMajorCode()
boolean
isSetMinorCode()
void
setMajorCode(int value)
void
setMinorCode(int value)
void
setValue(java.lang.String value)
-
Constructor Details
-
ErrorDef
public ErrorDef()
-
-
Method Details
-
getMessage
public java.lang.String getMessage() -
getMajorCode
public int getMajorCode()Description copied from interface:StatusMessage
Returns a "major error code" which describes the issue - for internal platform issues, this number can be used to get support. For StatusMessages generated from Modules or Datasets, this is not relevant.- Specified by:
getMajorCode
in interfaceStatusMessage
- See Also:
StatusMessage.getMajorCode()
-
getMinorCode
public int getMinorCode()Description copied from interface:StatusMessage
Returns a "minor error code" which further qualifies the major error code.- Specified by:
getMinorCode
in interfaceStatusMessage
- See Also:
StatusMessage.getMinorCode()
-
getValue
public java.lang.String getValue()Description copied from interface:StatusMessage
Returns the content of the message- Specified by:
getValue
in interfaceStatusMessage
- See Also:
StatusMessage.getValue()
-
setValue
public void setValue(java.lang.String value)- Specified by:
setValue
in interfaceStatusMessage
- See Also:
StatusMessage.setValue(java.lang.String)
-
getArgs
public java.util.List<java.lang.String> getArgs()Description copied from interface:StatusMessage
If the message value was created using a format which included arguments, this contains those arguments- Specified by:
getArgs
in interfaceStatusMessage
- See Also:
StatusMessage.getArgs()
-
setMajorCode
public void setMajorCode(int value)- Specified by:
setMajorCode
in interfaceStatusMessage
- See Also:
StatusMessage.setMajorCode(int)
-
setMinorCode
public void setMinorCode(int value)- Specified by:
setMinorCode
in interfaceStatusMessage
- See Also:
StatusMessage.setMinorCode(int)
-
isSetMajorCode
public boolean isSetMajorCode()- Specified by:
isSetMajorCode
in interfaceStatusMessage
- See Also:
StatusMessage.isSetMajorCode()
-
isSetMinorCode
public boolean isSetMinorCode()- Specified by:
isSetMinorCode
in interfaceStatusMessage
- See Also:
StatusMessage.isSetMinorCode()
-