c

munit

ComparisonFailException

class ComparisonFailException extends ComparisonFailure with FailExceptionLike[ComparisonFailException]

The base exception for all comparison failures.

This class exists so that it can extend org.junit.ComparisonFailure, which is recognised by IntelliJ so that users can optionally compare the obtained/expected values in a GUI diff explorer.

Linear Supertypes
FailExceptionLike[ComparisonFailException], ComparisonFailure, AssertionError, Error, Throwable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ComparisonFailException
  2. FailExceptionLike
  3. ComparisonFailure
  4. AssertionError
  5. Error
  6. Throwable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ComparisonFailException(message: String, obtained: Any, expected: Any, location: Location)

    message

    the exception message.

    obtained

    the obtained value from this comparison.

    expected

    the expected value from this comparison.

    location

    the source location where this exception was thrown.

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 addSuppressed(arg0: Throwable): Unit
    Definition Classes
    Throwable
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. val expected: Any
  10. def fillInStackTrace(): Throwable
    Definition Classes
    Throwable
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getActual(): String
    Definition Classes
    ComparisonFailure
  13. def getCause(): Throwable
    Definition Classes
    Throwable
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def getExpected(): String
    Definition Classes
    ComparisonFailure
  16. def getLocalizedMessage(): String
    Definition Classes
    Throwable
  17. def getMessage(): String
    Definition Classes
    ComparisonFailException → ComparisonFailure → Throwable
  18. def getStackTrace(): Array[StackTraceElement]
    Definition Classes
    Throwable
  19. final def getSuppressed(): Array[Throwable]
    Definition Classes
    Throwable
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def initCause(arg0: Throwable): Throwable
    Definition Classes
    Throwable
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. val location: Location
  24. val message: String
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. val obtained: Any
  29. def printStackTrace(arg0: PrintWriter): Unit
    Definition Classes
    Throwable
  30. def printStackTrace(arg0: PrintStream): Unit
    Definition Classes
    Throwable
  31. def printStackTrace(): Unit
    Definition Classes
    Throwable
  32. def setStackTrace(arg0: Array[StackTraceElement]): Unit
    Definition Classes
    Throwable
  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    Throwable → AnyRef → Any
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  38. def withMessage(newMessage: String): ComparisonFailException

Inherited from ComparisonFailure

Inherited from AssertionError

Inherited from Error

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped