Package com.ibm.di.connector.sapr3.bor
Class AbapErrorInfo
- java.lang.Object
-
- com.ibm.di.connector.sapr3.bor.AbapErrorInfo
-
public final class AbapErrorInfo extends java.lang.ObjectThis class represents an instance of BAPI RFC Return structure information.
-
-
Constructor Summary
Constructors Constructor Description AbapErrorInfo(java.lang.String message, java.lang.String errorNum, java.lang.String severityFlag)Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInternalSource()Miscellaneous context information.java.lang.StringgetMsg()Get the message string.java.lang.IntegergetMsgNum()Get the message number.booleanisError()Get the error indicator.booleanisWarn()Get the warning indicator.voidsetInternalSource(java.lang.String s)Miscellaneous context information.java.lang.StringtoString()Make string representation of this instance.
-
-
-
Constructor Detail
-
AbapErrorInfo
public AbapErrorInfo(java.lang.String message, java.lang.String errorNum, java.lang.String severityFlag) throws java.lang.IllegalArgumentExceptionCreate a new instance.- Parameters:
message- The message returned from SAP RFC.errorNum- The error number indicator.severityFlag- The severity indicator from the RFC.- Throws:
java.lang.IllegalArgumentException- if any params are null.
-
-
Method Detail
-
getMsg
public java.lang.String getMsg()
Get the message string.- Returns:
- The message.
-
getMsgNum
public java.lang.Integer getMsgNum()
Get the message number.- Returns:
- The message number.
-
isError
public boolean isError()
Get the error indicator.- Returns:
trueif ABAP error was returned,falseotherwise.
-
isWarn
public boolean isWarn()
Get the warning indicator.- Returns:
trueif ABAP warning was returned,falseotherwise.
-
setInternalSource
public void setInternalSource(java.lang.String s)
Miscellaneous context information.- Parameters:
s- The value.
-
getInternalSource
public java.lang.String getInternalSource()
Miscellaneous context information.- Returns:
- s The value.
-
toString
public java.lang.String toString()
Make string representation of this instance.- Overrides:
toStringin classjava.lang.Object- Returns:
- A formatted string of the as follows: {SEVERITY}: {MESSAGE} {(ERROR_NUMBER)} {(CONTEXT)}.
-
-