Class

munit

ComparisonFailException

Related Doc: package munit

Permalink

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)

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def addSuppressed(arg0: Throwable): Unit

    Permalink
    Definition Classes
    Throwable
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. val expected: Any

    Permalink

    the expected value from this comparison.

  10. def fillInStackTrace(): Throwable

    Permalink
    Definition Classes
    Throwable
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getActual(): String

    Permalink
    Definition Classes
    ComparisonFailure
  13. def getCause(): Throwable

    Permalink
    Definition Classes
    Throwable
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getExpected(): String

    Permalink
    Definition Classes
    ComparisonFailure
  16. def getLocalizedMessage(): String

    Permalink
    Definition Classes
    Throwable
  17. def getMessage(): String

    Permalink
    Definition Classes
    ComparisonFailException → ComparisonFailure → Throwable
  18. def getStackTrace(): Array[StackTraceElement]

    Permalink
    Definition Classes
    Throwable
  19. final def getSuppressed(): Array[Throwable]

    Permalink
    Definition Classes
    Throwable
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. def initCause(arg0: Throwable): Throwable

    Permalink
    Definition Classes
    Throwable
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. val location: Location

    Permalink

    the source location where this exception was thrown.

    the source location where this exception was thrown.

    Definition Classes
    ComparisonFailExceptionFailExceptionLike
  24. val message: String

    Permalink

    the exception message.

  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. val obtained: Any

    Permalink

    the obtained value from this comparison.

  29. def printStackTrace(arg0: PrintWriter): Unit

    Permalink
    Definition Classes
    Throwable
  30. def printStackTrace(arg0: PrintStream): Unit

    Permalink
    Definition Classes
    Throwable
  31. def printStackTrace(): Unit

    Permalink
    Definition Classes
    Throwable
  32. def setStackTrace(arg0: Array[StackTraceElement]): Unit

    Permalink
    Definition Classes
    Throwable
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toString(): String

    Permalink
    Definition Classes
    Throwable → AnyRef → Any
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withMessage(newMessage: String): ComparisonFailException

    Permalink

Inherited from ComparisonFailure

Inherited from AssertionError

Inherited from Error

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped