| Copyright | (c) digitally induced GmbH 2020 |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
IHP.Router.Types
Description
Synopsis
- data TypedAutoRouteError
- = BadType {
- expectedType :: !ByteString
- value :: !(Maybe ByteString)
- field :: !ByteString
- | TooFewArguments
- | NotMatched
- | NoConstructorMatched {
- expectedType :: !ByteString
- value :: !(Maybe ByteString)
- field :: !ByteString
- = BadType {
- data UnexpectedMethodException = UnexpectedMethodException {
- allowedMethods :: [StdMethod]
- method :: StdMethod
Documentation
data TypedAutoRouteError Source #
Constructors
| BadType | |
Fields
| |
| TooFewArguments | |
| NotMatched | |
| NoConstructorMatched | Thrown when Let's say we have a When opening |
Fields
| |
Instances
| Exception TypedAutoRouteError Source # | |
Defined in IHP.Router.Types Methods toException :: TypedAutoRouteError -> SomeException # fromException :: SomeException -> Maybe TypedAutoRouteError # | |
| Show TypedAutoRouteError Source # | |
Defined in IHP.Router.Types Methods showsPrec :: Int -> TypedAutoRouteError -> ShowS # show :: TypedAutoRouteError -> String # showList :: [TypedAutoRouteError] -> ShowS # | |
data UnexpectedMethodException Source #
Thrown e.g. a CreateProjectAction is called from a GET request
Constructors
| UnexpectedMethodException | |
Fields
| |
Instances
| Exception UnexpectedMethodException Source # | |
Defined in IHP.Router.Types | |
| Show UnexpectedMethodException Source # | |
Defined in IHP.Router.Types Methods showsPrec :: Int -> UnexpectedMethodException -> ShowS # show :: UnexpectedMethodException -> String # showList :: [UnexpectedMethodException] -> ShowS # | |