Package com.pubmatic.sdk.common
Class POBError
-
- All Implemented Interfaces:
public class POBErrorMaintains the OpenWrap error code along with specific error message
-
-
Field Summary
Fields Modifier and Type Field Description public final static intINVALID_REQUESTpublic final static intNO_ADS_AVAILABLEpublic final static intNETWORK_ERRORpublic final static intSERVER_ERRORpublic final static intTIMEOUT_ERRORpublic final static intINTERNAL_ERRORpublic final static intINVALID_RESPONSEpublic final static intREQUEST_CANCELLEDpublic final static intRENDER_ERRORpublic final static intOPENWRAP_SIGNALING_ERRORpublic final static intAD_EXPIREDpublic final static intAD_REQUEST_NOT_ALLOWEDpublic final static intINVALID_CONFIGpublic final static intAD_ALREADY_SHOWNpublic final static intAD_NOT_READYpublic final static intCLIENT_SIDE_AUCTION_LOSTpublic final static intINVALID_REWARD_SELECTEDpublic final static intREWARD_NOT_SELECTEDpublic interrorCodepublic StringerrorMessagepublic Map<String, Object>extraInfo
-
Method Summary
Modifier and Type Method Description intgetErrorCode()Returns the integer value of the error code. voidsetErrorCode(int errorCode)(Internal for OpenWrap SDK) StringgetErrorMessage()Returns the descriptive message for probable fix voidsetErrorMessage(@NonNull() String errorMessage)(Internal for OpenWrap SDK) Map<String, Object>getExtraInfo()returns the extra info needed for identifying the granular level of error identification voidsetExtraInfo(@Nullable() Map<String, Object> extraInfo)Sets the map containing the extra information needed for identifying the granular level of error ObjectgetExtraInfo(@Nullable() String key)Returns the extra info needed for identifying the granular level of error identification based on provided key voidaddExtraInfo(String key, Object value)Sets the key-value pair for the extra information needed for identifying the granular level of error StringtoString()Returns the descriptive/string format of current error object. -
-
Constructor Detail
-
POBError
POBError(int errorCode, String message)
-
-
Method Detail
-
getErrorCode
int getErrorCode()
Returns the integer value of the error code.
- Returns:
error code value
-
setErrorCode
@Deprecated() void setErrorCode(int errorCode)
(Internal for OpenWrap SDK)
- Parameters:
errorCode- error code
-
getErrorMessage
@NonNull() String getErrorMessage()
Returns the descriptive message for probable fix
- Returns:
Error message
-
setErrorMessage
@Deprecated() void setErrorMessage(@NonNull() String errorMessage)
(Internal for OpenWrap SDK)
- Parameters:
errorMessage- error message
-
getExtraInfo
@Nullable() Map<String, Object> getExtraInfo()
returns the extra info needed for identifying the granular level of error identification
- Returns:
Map containing the extra info
-
setExtraInfo
void setExtraInfo(@Nullable() Map<String, Object> extraInfo)
Sets the map containing the extra information needed for identifying the granular level of error
- Parameters:
extraInfo- Map containing the extra information
-
getExtraInfo
@Nullable() Object getExtraInfo(@Nullable() String key)
Returns the extra info needed for identifying the granular level of error identification based on provided key
- Parameters:
key- Key for expected information- Returns:
Object for extra information
-
addExtraInfo
void addExtraInfo(String key, Object value)
Sets the key-value pair for the extra information needed for identifying the granular level of error
- Parameters:
key- Key for saving the extra informationvalue- Value for extra info
-
-
-
-