Dancer2
Dancer2 copied to clipboard
Dancer2::Core::Error document is obsolete
The documentation for Dancer2::Core::Error includes instantiating a new object and then using the render method (which doesn't exist anymore) and then setting it as the response using Dancer2::Core::Response's set, which doesn't exist.
Instead, we just create a new instance and call throw.