abstract class ExHelper extends AnyRef
Utils for exceptions.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- ExHelper
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new ExHelper()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val DEFAULT_LOGGER: String
-
val
ERROR_MESSAGES_RESOURCE: String
Resource file of error messages.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildMessage(className: String, methodName: String, ex: Throwable, includeInnerException: Boolean = true, includeStackTrace: Boolean = false, userMessage: String = null, userMessageBefore: Boolean = false): String
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def error(messageCode: String, params: Any*): Unit
- def error(errorCode: Type, messageCode: String, params: Any*): Unit
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getMessage(ex: Throwable, includeInnerException: Boolean = true, includeStackTrace: Boolean = false, userMessage: String = null, userMessageBefore: Boolean = false): String
Returns text description of error.
-
def
getRootClassName(ex: Throwable): String
Returns class name of the first element of stack trace in which the exception occurred.
-
def
getRootStackTrace(ex: Throwable): String
Returns first element of stack trace.
-
def
getStackTrace(ex: Throwable, stackTraceDepth: Int = 0): String
Returns stacktrace.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logAndThrow(ex: Throwable, logger: String = DEFAULT_LOGGER): Unit
-
def
logAndThrow(ex: Throwable, logger: String, className: String): Unit
Logged exception with slf4j, wrap in BaseRuntimeException if it not instance of RuntimeException and throw.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def throwEmptyCollection(col: String): Unit
- def throwIndexOutOfBounds(): Unit
- def throwNullArgument(name: String): Unit
- def throwObjectNotInCollection(name: String): Unit
- def throwPropertyNotInitialized(name: String, userMessage: String = null): Unit
- def throwResourceNotFound(bundleName: String): Unit
- def throwStringArgumentNullOrEmpty(name: String): Unit
- def throwUnknownType(typ: String): Unit
- def throwUnsupportedOperation(): Unit
- def throwValueAlreadyExist(value: Any, owner: Class[_], applicant: Class[_]): Unit
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )