1 // Copyright 2015-present 650 Industries. All rights reserved. 2 package host.exp.exponent.exceptions 3 4 import java.lang.Exception 5 6 abstract class ExponentException(private val originalException: Exception?) : Exception() { toStringnull7 abstract override fun toString(): String 8 9 fun originalException(): Exception? { 10 return originalException 11 } 12 originalExceptionMessagenull13 fun originalExceptionMessage(): String { 14 return originalException?.toString() ?: toString() 15 } 16 } 17