-
- All Implemented Interfaces:
-
java.io.Serializable
public class EloError extends RuntimeException
Typed errors from the Elo SDK.
Surfaced via EloAdListener.onAdDidFail and AdResult.Error. Use the sealed hierarchy in an exhaustive
whento drive retry, fallback, and diagnostic UI.Mirrors iOS
EloError. The Android variant uses Throwable for transport errors instead of Foundation'sURLError; semantics are the same.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEloError.NotConfiguredThe SDK has not been configured. Call Elo.configure first.
public final classEloError.NetworkErrorA transport-layer error occurred (DNS, connection, IO).
public final classEloError.ServerErrorThe server returned a non-2xx status code.
public final classEloError.DecodingErrorFailed to decode the server response.
public classEloError.TimeoutThe request timed out.
public classEloError.CancelledThe request was cancelled.
-
Method Summary
Modifier and Type Method Description final IntegergetErrorCode()ThrowablegetCause()StringgetMessage()-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getErrorCode
final Integer getErrorCode()
-
getMessage
String getMessage()
-
-
-
-