Package-level declarations

Types

Link copied to clipboard

Abstract base class for ErrorConverterFactory implementations.

Link copied to clipboard

Default error converter that handles common exception types.

Link copied to clipboard
object ErrorCodes

Centralized error code constants for the Wow framework.

Link copied to clipboard
fun interface ErrorConverter<E : Throwable>

Functional interface for converting exceptions to standardized error information.

Link copied to clipboard

Factory interface for creating ErrorConverter instances.

Link copied to clipboard

Registry for managing error converters by exception type.

Link copied to clipboard
class NotFoundResourceException(errorMsg: String = ErrorCodes.NOT_FOUND_MESSAGE, cause: Throwable? = null) : WowException

Exception thrown when a requested resource cannot be found.

Link copied to clipboard

Utility object for checking preconditions and throwing standardized exceptions.

Link copied to clipboard

Marker interface for exceptions that can be recovered through retry mechanisms.

Link copied to clipboard

Registry for managing recoverable exception classifications.

Link copied to clipboard
open class WowException(val errorCode: String, errorMsg: String, cause: Throwable? = null, val bindingErrors: List<BindingError> = emptyList()) : RuntimeException, ErrorInfo

Base exception class for the Wow framework.

Properties

Link copied to clipboard

Determines the default recoverable type for this exception class.

Determines the recoverable type of this Throwable.

Functions

Link copied to clipboard
fun Retry?.recoverable(throwableClass: Class<out Throwable>): RecoverableType

Determines recoverable type considering Retry annotation configuration.

Link copied to clipboard
fun <T> Flux<T>.throwNotFoundIfEmpty(errorMsg: String = ErrorCodes.NOT_FOUND_MESSAGE, cause: Throwable? = null): Flux<T>

Throws NotFoundResourceException if the Flux is empty.

fun <T> Mono<T>.throwNotFoundIfEmpty(errorMsg: String = ErrorCodes.NOT_FOUND_MESSAGE, cause: Throwable? = null): Mono<T>

Throws NotFoundResourceException if the Mono is empty.

Link copied to clipboard
fun <T> T?.throwNotFoundIfNull(errorMsg: String = ErrorCodes.NOT_FOUND_MESSAGE, cause: Throwable? = null): T

Throws NotFoundResourceException if the value is null.

Link copied to clipboard

Converts this Throwable to standardized ErrorInfo.