Home

hexagon_core / com.hexagonkt.helpers / MultipleException

MultipleException

class MultipleException :RuntimeException

Exception with a list of causes. Cause is null as it can't be tell which one of the list is the cause.

A coded multiple exception should be created this way: CodedException(400, "Many errors", MultipleException())

To pass a list of causes CodedException (500, "Error", *list)

Constructors

Name Summary
<init> MultipleException(vararg causes:Throwable)
MultipleException(message:String, causes:List<Throwable>)
MultipleException(message:String, vararg causes:Throwable)
Exception with a list of causes. Cause is null as it can't be tell which one of the list is the cause.MultipleException(causes:List<Throwable>, message:String= "")

Properties

Name Summary
causes val causes:List<Throwable>