CloudPlugs REST Library  1.0.0
for Android
ErrHandler Class Reference

Class for handling thrown exceptions during an asynchronous execution of this library. More...

Public Member Functions

void handleErr (Throwable err)
 

Static Public Attributes

static final ErrHandler DEFAULT = new ErrHandler()
 
static ErrHandler active = DEFAULT
 

Detailed Description

Class for handling thrown exceptions during an asynchronous execution of this library.

Member Function Documentation

◆ handleErr()

void handleErr ( Throwable  err)

This method is called by an underlying thread of this library when unexpected exception is thrown. This default implementation prints the stack trace of the captured throwable.

Parameters
errthe thrown exception to handle

Member Data Documentation

◆ active

ErrHandler active = DEFAULT
static

This is the active implementation of ErrHandler. It is initialized as DEFAULT. If null, any thrown exceptions from an asynchronous execution will be ignored.

◆ DEFAULT

final ErrHandler DEFAULT = new ErrHandler()
static

This is the default implementation of ErrHandler.