Dart API Referencedart:coreIllegalArgumentException

IllegalArgumentException class

Temporary backwards compatibility class.

Removed when users have had time to change to using ArgumentError.

class IllegalArgumentException extends ArgumentError {
  const IllegalArgumentException([argument = ""]) : super(argument);
}

Extends

ArgumentError > IllegalArgumentException

Constructors

const IllegalArgumentException([argument = ""]) #

const IllegalArgumentException([argument = ""]) : super(argument);

Properties

final message #

inherited from ArgumentError
final message;

Methods

String toString() #

inherited from ArgumentError

Returns a string representation of this object.

docs inherited from Object
String toString() {
  if (message != null) {
    return "Illegal argument(s): $message";
  }
  return "Illegal argument(s)";
}