object ErrorUtil
- Alphabetic
- By Inheritance
- ErrorUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def internalError(t: Throwable)(implicit loggingContext: ErrorLoggingContext): Nothing
Throws a throwable and logs it at ERROR level with proper formatting.
- def internalErrorAsync(t: Throwable)(implicit loggingContext: ErrorLoggingContext): Future[Nothing]
Log a throwable at ERROR level with proper formatting.
Log a throwable at ERROR level with proper formatting.
- returns
The throwable in a failed future.
- def internalErrorAsyncShutdown(t: Throwable)(implicit loggingContext: ErrorLoggingContext): FutureUnlessShutdown[Nothing]
Log a throwable at ERROR level with proper formatting.
Log a throwable at ERROR level with proper formatting.
- returns
The throwable in a failed com.digitalasset.canton.lifecycle.FutureUnlessShutdown.
- val internalErrorMessage: String
- def internalErrorTry(t: Throwable)(implicit loggingContext: ErrorLoggingContext): Failure[Nothing]
Wraps a throwable in scala.util.Failure and logs it at ERROR level with proper formatting
- def invalidState(message: => String)(implicit loggingContext: ErrorLoggingContext): Nothing
Indicate an illegal state by logging an ERROR and throw an IllegalStateException
Indicate an illegal state by logging an ERROR and throw an IllegalStateException
- Exceptions thrown
- def invalidStateAsync(message: => String)(implicit loggingContext: ErrorLoggingContext): Future[Nothing]
Indicate an illegal state by logging an ERROR and return a IllegalStateException in a failed future.
Indicate an illegal state by logging an ERROR and return a IllegalStateException in a failed future.
- returns
The throwable in a failed future.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def messageWithStacktrace(t: Throwable): String
Yields a string representation of a throwable (including stack trace and causes).
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def requireArgument(condition: Boolean, message: => String)(implicit loggingContext: ErrorLoggingContext): Unit
If
condition
is not satisfied, log an ERROR and throw an IllegalArgumentExceptionIf
condition
is not satisfied, log an ERROR and throw an IllegalArgumentException- Exceptions thrown
- def requireArgumentAsync(condition: Boolean, message: => String)(implicit loggingContext: ErrorLoggingContext): Future[Unit]
If
condition
is not satisfied, log an ERROR and return a failed future with an java.lang.IllegalArgumentException - def requireState(condition: Boolean, message: => String)(implicit loggingContext: ErrorLoggingContext): Unit
If
condition
is not satisfied, log an ERROR and throw an IllegalStateExceptionIf
condition
is not satisfied, log an ERROR and throw an IllegalStateException- Exceptions thrown
- def requireStateAsync(condition: Boolean, message: => String)(implicit loggingContext: ErrorLoggingContext): Future[Unit]
If
condition
is not satisfied, log an ERROR and return a failed future with an java.lang.IllegalStateException - def requireStateAsyncShutdown(condition: Boolean, message: => String)(implicit loggingContext: ErrorLoggingContext): FutureUnlessShutdown[Unit]
If
condition
is not satisfied, log an ERROR and return a failed FutureUnlessShutdown with an java.lang.IllegalStateException - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withThrowableLogging[T](action: => T, valueOnThrowable: Option[T] = None)(implicit loggingContext: ErrorLoggingContext): T
Logs and rethrows any throwable.