-
- All Implemented Interfaces:
public abstract class ErrorsTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classErrorsTest.CustomException
-
Constructor Summary
Constructors Constructor Description ErrorsTest(ServerPort adapter)
-
Method Summary
Modifier and Type Method Description final ServergetServer()final Unitinitialize()final Unitshutdown()final UnitHalt stops request with 500 status code()final UnitHandling status code allows to change the returned code()final UnitHandle exception allows to catch unhandled callback exceptions()final UnitBase error handler catch all exceptions that subclass a given one()final UnitA runtime exception returns a 500 code()-
-
Constructor Detail
-
ErrorsTest
ErrorsTest(ServerPort adapter)
-
-
Method Detail
-
initialize
final Unit initialize()
-
Halt stops request with 500 status code
final Unit Halt stops request with 500 status code()
-
Handling status code allows to change the returned code
final Unit Handling status code allows to change the returned code()
-
Handle exception allows to catch unhandled callback exceptions
final Unit Handle exception allows to catch unhandled callback exceptions()
-
Base error handler catch all exceptions that subclass a given one
final Unit Base error handler catch all exceptions that subclass a given one()
-
A runtime exception returns a 500 code
final Unit A runtime exception returns a 500 code()
-
-
-
-