pushover-0.1.0.1: A Haskell Pushover API library

Safe HaskellSafe
LanguageHaskell2010

Network.Pushover.Exceptions

Description

This module defines exceptions which can be thrown within this library.

Synopsis

Documentation

data PushoverException Source #

Defines possible exceptions which can be thrown from execution commands.

Constructors

ResponseDecodeException

This exception is thrown when a response is malformed and cannot be decoded.

InvalidTokenCharactersException

This exception is thrown when a token cannot be constructed because it contains invalid characters.

InvalidTokenLengthException

This exception is thrown when a token cannot be constructed because it is an incorrect length.

PushoverException String

This is a generic exception for other errors in Pushover.

errorMessage :: PushoverException -> String Source #

Display a description error message for each PushoverException constructor.