public interface

ExceptionHandler

fm.audiobox.core.exceptions.ExceptionHandler

Class Overview

An exception handler is used to perform further operations when an AudioBoxException is thrown.

You can set your ExceptionHandler via setExceptionHandler(ExceptionHandler).

Classes that implements an ExceptionHandler must respond to onException method that passes an AudioBoxException as argument.

If the return value of onException is true then the exception is considered "handled" and no further actions will be taken. If false is returned then the exception is thrown to upper stack.

Summary

Public Methods
abstract boolean onException(AudioBoxException e)
This method implementation must return true if the given AudioBoxException was handled, false otherwise.

Public Methods

public abstract boolean onException (AudioBoxException e)

This method implementation must return true if the given AudioBoxException was handled, false otherwise.

If the AudioBoxException was not handled then the exception is thrown to the next level.

Returns
  • true if the exception is handled, false otherwise.