ErrorMessage

declslides.application.ErrorMessage
object ErrorMessage

Normalizes throwable messages for user-facing error reporting.

This object turns exceptions into readable messages without leaking null or blank strings into the rest of the application.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(error: Throwable): String

Returns a trimmed message for the given throwable.

Returns a trimmed message for the given throwable.

If the throwable has no useful message, this method falls back to the simple name of the exception class.

Attributes