Class AdException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.castlabs.android.player.exceptions.AdException
- All Implemented Interfaces:
Serializable
Describes an error that occurred while requesting, preparing, or playing an ad.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAdException(AdException.Type type, String message) Creates an ad exception without an underlying cause.AdException(AdException.Type type, String message, Throwable cause) Creates an ad exception with an optional underlying cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AdException
Creates an ad exception without an underlying cause.- Parameters:
type- The specific type of ad errormessage- A message describing the error
-
AdException
public AdException(@NonNull AdException.Type type, @NonNull String message, @Nullable Throwable cause) Creates an ad exception with an optional underlying cause.- Parameters:
type- The specific type of ad errormessage- A message describing the errorcause- The underlying cause, ornullif unavailable
-
-
Method Details
-
getType
Returns the specific type of ad error.- Returns:
- The ad error type
-