Checks if the input data can be handled by this class. Throws an error if it can't handle the data.
A promise resolving if the input can be handled, rejecting with an Error if not.
Creates a ResponseDescription based on the Representation.
Handles the given input. This should only be done if the canHandle function returned true
.
Therefore, consider using the handleSafe function instead.
A promise resolving when the handling is finished. Return value depends on the given type.
A promise resolving if the input can be handled, rejecting with an Error if not. Return value depends on the given type.
Prepares the arguments used by all functions.
Creates a Representation based on the given error. Content type will be internal/error. The status code is used for metadata.
Converts an error into a Representation of content type internal/error. Then feeds that representation into its converter to create a representation based on the given preferences.