Skip to content
This repository was archived by the owner on Aug 17, 2019. It is now read-only.

Commit 9b558d5

Browse files
committed
Actually use the cause
1 parent 265c2f4 commit 9b558d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/com/ckkloverdos/convert/ConverterException.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ package com.ckkloverdos.convert
2020
*
2121
* @author Christos KK Loverdos <loverdos@gmail.com>.
2222
*/
23-
final class ConverterException(cause: Throwable, msg: String, args: Any*) extends Exception(msg.format(args: _*)) {
23+
final class ConverterException(cause: Throwable, msg: String, args: Any*) extends Exception(msg.format(args: _*), cause) {
2424
def this(msg: String, args: Any*) = this(null: Throwable, msg, args: _*)
2525
}
2626

@@ -31,5 +31,5 @@ final class ConverterException(cause: Throwable, msg: String, args: Any*) extend
3131
*/
3232
object ConverterException {
3333
def apply(msg: String, args: Any*): Nothing = throw new ConverterException(msg, args: _*)
34-
def apply(cause: Throwable, msg: String, args: Any*): Nothing = throw new ConverterException(msg, args: _*)
34+
def apply(cause: Throwable, msg: String, args: Any*): Nothing = throw new ConverterException(cause, msg, args: _*)
3535
}

0 commit comments

Comments
 (0)