IHP Api Reference
Copyright(c) digitally induced GmbH 2020
Safe HaskellNone

IHP.Router.Types

Description

 
Synopsis

Documentation

data TypedAutoRouteError Source #

Constructors

BadType 
TooFewArguments 
NotMatched 
NoConstructorMatched

Thrown when parseUUIDArgument, parseIntArgument, etc. get passed an invalid value

Let's say we have a ShowProjectAction { id :: Id Project }.

When opening /ShowProject?projectId=ab55d579-80cd-4608-9a8f-c76dea6c2332 everything is fine. But when opening /ShowProject?projectId=not-an-uuid this exception will be thrown.