object ErrorUtil

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ErrorUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def internalError(t: Throwable)(implicit loggingContext: ErrorLoggingContext): Nothing

    Throws a throwable and logs it at ERROR level with proper formatting.

  11. 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.

  12. 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.

  13. val internalErrorMessage: String
  14. 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

  15. 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
  16. 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.

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def messageWithStacktrace(t: Throwable): String

    Yields a string representation of a throwable (including stack trace and causes).

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. def requireArgument(condition: Boolean, message: => String)(implicit loggingContext: ErrorLoggingContext): Unit

    If condition is not satisfied, log an ERROR and throw an IllegalArgumentException

    If condition is not satisfied, log an ERROR and throw an IllegalArgumentException

    Exceptions thrown
  23. 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

  24. def requireState(condition: Boolean, message: => String)(implicit loggingContext: ErrorLoggingContext): Unit

    If condition is not satisfied, log an ERROR and throw an IllegalStateException

    If condition is not satisfied, log an ERROR and throw an IllegalStateException

    Exceptions thrown
  25. 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

  26. 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

  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. def withThrowableLogging[T](action: => T, valueOnThrowable: Option[T] = None)(implicit loggingContext: ErrorLoggingContext): T

    Logs and rethrows any throwable.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped