rescue-0.2.0: More understandable exceptions

Safe HaskellSafe
LanguageHaskell2010

Data.Exception.Types

Description

Common exceptions

Documentation

data NotFound entity Source #

Constructors

NotFound 
Instances
Eq (NotFound entity) Source # 
Instance details

Defined in Data.Exception.Types

Methods

(==) :: NotFound entity -> NotFound entity -> Bool #

(/=) :: NotFound entity -> NotFound entity -> Bool #

Show (NotFound entity) Source # 
Instance details

Defined in Data.Exception.Types

Methods

showsPrec :: Int -> NotFound entity -> ShowS #

show :: NotFound entity -> String #

showList :: [NotFound entity] -> ShowS #

data NotAllowed entity user Source #

Constructors

NotAllowed entity user 
Instances
(Eq entity, Eq user) => Eq (NotAllowed entity user) Source # 
Instance details

Defined in Data.Exception.Types

Methods

(==) :: NotAllowed entity user -> NotAllowed entity user -> Bool #

(/=) :: NotAllowed entity user -> NotAllowed entity user -> Bool #

(Show entity, Show user) => Show (NotAllowed entity user) Source # 
Instance details

Defined in Data.Exception.Types

Methods

showsPrec :: Int -> NotAllowed entity user -> ShowS #

show :: NotAllowed entity user -> String #

showList :: [NotAllowed entity user] -> ShowS #

newtype AlreadyExists entity Source #

Constructors

AlreadyExists entity 
Instances
Eq entity => Eq (AlreadyExists entity) Source # 
Instance details

Defined in Data.Exception.Types

Methods

(==) :: AlreadyExists entity -> AlreadyExists entity -> Bool #

(/=) :: AlreadyExists entity -> AlreadyExists entity -> Bool #

Show entity => Show (AlreadyExists entity) Source # 
Instance details

Defined in Data.Exception.Types

Methods

showsPrec :: Int -> AlreadyExists entity -> ShowS #

show :: AlreadyExists entity -> String #

showList :: [AlreadyExists entity] -> ShowS #

newtype OutOfBounds entity index Source #

Constructors

OutOfBounds index 
Instances
Eq index => Eq (OutOfBounds entity index) Source # 
Instance details

Defined in Data.Exception.Types

Methods

(==) :: OutOfBounds entity index -> OutOfBounds entity index -> Bool #

(/=) :: OutOfBounds entity index -> OutOfBounds entity index -> Bool #

Show index => Show (OutOfBounds entity index) Source # 
Instance details

Defined in Data.Exception.Types

Methods

showsPrec :: Int -> OutOfBounds entity index -> ShowS #

show :: OutOfBounds entity index -> String #

showList :: [OutOfBounds entity index] -> ShowS #