AbstractErrorConverterFactory

Abstract base class for ErrorConverterFactory implementations.

This class provides automatic type resolution for the supported exception type using reflection on the generic type parameter. Subclasses only need to implement the create() method.

Parameters

E

the type of exception the factory handles

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val supportedType: Class<E>

Automatically resolves the supported exception type from the generic type parameter.

Functions

Link copied to clipboard
abstract fun create(): ErrorConverter<E>

Creates a new ErrorConverter instance.