class NullArgumentException extends IllegalArgumentException
Exception that indicates a passed argument was null
.
Prior to ScalaTest and Scalactic 3.0.0, a null
argument (where non-null
was required)
would result in a NullPointerException
. Although throwing NullPointerException
is the
tradition in Java APIs, Scala.js does not support a NullPointerException
. To make the behavior
the same on both the JVM and Scala.js, the change to throwing NullArgumentException
was made throughout
the ScalaTest and Scalactic, including the requireNonNull
method of trait Requirements
.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- NullArgumentException
- IllegalArgumentException
- RuntimeException
- Exception
- Throwable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new NullArgumentException(message: String)
- message
the detail message
Value Members
- final def addSuppressed(arg0: Throwable): Unit
- Definition Classes
- Throwable
- def fillInStackTrace(): Throwable
- Definition Classes
- Throwable
- def getCause(): Throwable
- Definition Classes
- Throwable
- def getLocalizedMessage(): String
- Definition Classes
- Throwable
- def getMessage(): String
- Definition Classes
- Throwable
- def getStackTrace(): Array[StackTraceElement]
- Definition Classes
- Throwable
- final def getSuppressed(): Array[Throwable]
- Definition Classes
- Throwable
- def initCause(arg0: Throwable): Throwable
- Definition Classes
- Throwable
- def printStackTrace(arg0: PrintWriter): Unit
- Definition Classes
- Throwable
- def printStackTrace(arg0: PrintStream): Unit
- Definition Classes
- Throwable
- def printStackTrace(): Unit
- Definition Classes
- Throwable
- def setStackTrace(arg0: Array[StackTraceElement]): Unit
- Definition Classes
- Throwable
- def toString(): String
- Definition Classes
- Throwable → AnyRef → Any