Skip to main content
Version: 4.2.0

Error Codes

Every BidMachineError returned by the SDK carries a numeric code identifying the failure category. Compare against the constants below to handle specific error types.

Code Reference

CodeConstantDescription
100CODE_CONNECTIONCan't connect to server.
101CODE_BAD_CONTENTResponse content is malformed or cannot be parsed.
102CODE_TIMEOUTTimeout reached.
103CODE_NO_FILLNo fill.
104CODE_AD_NOT_READYAd is not ready to be shown.
105CODE_AD_ALREADY_LOADINGA load is already in progress.
106CODE_DESTROYEDAd was destroyed.
107CODE_EXPIREDAd was expired.
108CODE_INTERNALUnknown internal error.
109CODE_SERVERServer failed to fulfill an apparently valid request.
110CODE_BAD_REQUESTRequest contains bad syntax or cannot be fulfilled.
200CODE_HEADER_BIDDINGAdapter / header-bidding network error.

Log Format

Single-line description in a unified format:

(<code>) <message>

When a Throwable.cause is attached and is itself a BidMachineError, it is chained on the same line:

(<code>) <message> - (<causeCode>) <causeMessage>

Examples:

(100) Can't connect to server
(102) Timeout reached
(103) No fill
(110) Request contains bad syntax or cannot be fulfilled
(108) Unknown internal error - (109) Server failed to fulfill an apparently valid request