-
public final class OneSignalError.DetailA single reason a call failed.
Nested rather than top-level so the name cannot collide with
kotlin.Error, which is auto-imported everywhere, or shadowjava.lang.Errorin a Java file that imports it.
-
-
Field Summary
Fields Modifier and Type Field Description private final ErrorCodecodeprivate final StringbackendCodeprivate final IntegerhttpStatusprivate final Stringmessageprivate final ErrorSourcesourceprivate final Map<String, Object>meta
-
Method Summary
Modifier and Type Method Description final ErrorCodegetCode()A stable code, safe to branch on. final StringgetBackendCode()Backend catalog code (e.g. final IntegergetHttpStatus()HTTP status of the backend response, when there was one. final StringgetMessage()A human-readable description intended for logs and diagnostics, not for end users. final ErrorSourcegetSource()Who the failure came from. final Map<String, Object>getMeta()Backend metaobject, when present (e.g.final Map<String, Object>toMap()Projects this reason onto the cross-SDK wire shape consumed by the wrapper bridges. StringtoString()-
-
Method Detail
-
getBackendCode
final String getBackendCode()
Backend catalog code (e.g.
user-1). Present only for BACKEND_ERROR.
-
getHttpStatus
final Integer getHttpStatus()
HTTP status of the backend response, when there was one.
-
getMessage
final String getMessage()
A human-readable description intended for logs and diagnostics, not for end users.
-
getSource
final ErrorSource getSource()
Who the failure came from. Kept on UNKNOWN so a backend failure is not re-attributed as client.
-
getMeta
final Map<String, Object> getMeta()
Backend
metaobject, when present (e.g.conflicting_aliases).
-
toMap
final Map<String, Object> toMap()
Projects this reason onto the cross-SDK wire shape consumed by the wrapper bridges.
-
-
-
-