aicas logoJamaica 6.4 release 1

java.lang
Class AssertionError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by java.lang.AssertionError
All Implemented Interfaces:
Serializable

public class AssertionError
extends Error

An AssertionError represents an assertion that failed. The optional second value in an assert statement is used to initialize the AssertionError. The value is converted to String and used as the error-message.

Since:
1.4
See Also:
Serialized Form

Constructor Summary
AssertionError()
          Create AsseritionError without message.
AssertionError(boolean s)
          Create AssertionError.
AssertionError(char s)
          Create AssertionError.
AssertionError(double s)
          Create AssertionError.
AssertionError(float s)
          Create AssertionError.
AssertionError(int s)
          Create AssertionError.
AssertionError(long s)
          Create AssertionError.
AssertionError(Object s)
          Create AssertionError.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssertionError

public AssertionError()
Create AsseritionError without message.


AssertionError

public AssertionError(Object s)
Create AssertionError.

Parameters:
s - object that will be converte to a string that describes the failed assertion.

AssertionError

public AssertionError(boolean s)
Create AssertionError.

Parameters:
s - boolean that will be converted to a string that describes the failed assertion.

AssertionError

public AssertionError(char s)
Create AssertionError.

Parameters:
s - char that will be converted to a string that describes the failed assertion.

AssertionError

public AssertionError(int s)
Create AssertionError.

Parameters:
s - int that will be converted to a string that describes the failed assertion.

AssertionError

public AssertionError(long s)
Create AssertionError.

Parameters:
s - long that will be converted to a string that describes the failed assertion.

AssertionError

public AssertionError(float s)
Create AssertionError.

Parameters:
s - float that will be converted to a string that describes the failed assertion.

AssertionError

public AssertionError(double s)
Create AssertionError.

Parameters:
s - double that will be converted to a string that describes the failed assertion.

aicas logoJamaica 6.4 release 1

aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2015 aicas GmbH. All Rights Reserved.