aicas logoJamaica 6.4 release 1

java.lang
Class RuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AnnotationTypeMismatchException, ArithmeticException, ArrayStoreException, ArrivalTimeQueueOverflowException, BufferOverflowException, BufferUnderflowException, CannotRedoException, CannotUndoException, ClassCastException, CMMException, ConcurrentModificationException, DeregistrationException, DOMException, EmptyStackException, EnumConstantNotPresentException, EventException, IllegalArgumentException, IllegalMonitorStateException, IllegalPathStateException, IllegalStateException, ImagingOpException, InaccessibleAreaException, IncompleteAnnotationException, IndexOutOfBoundsException, JMRuntimeException, LSException, MalformedParameterizedTypeException, MemoryInUseException, MemoryScopeException, MemoryTypeConflictException, MirroredTypeException, MirroredTypesException, MissingResourceException, MITViolationException, NegativeArraySizeException, NoSuchElementException, NoSuchMechanismException, NullPointerException, OffsetOutOfBoundsException, ProfileDataException, ProviderException, RangeException, RasterFormatException, RegistrationException, RejectedExecutionException, ScopedCycleException, SecurityException, SizeOutOfBoundsException, SystemException, TypeConstraintException, TypeNotPresentException, UndeclaredThrowableException, UnknownAnnotationValueException, UnknownElementException, UnknownHappeningException, UnknownTypeException, UnmodifiableSetException, UnsupportedOperationException, UnsupportedPhysicalMemoryException, UnsupportedRawMemoryRegionException, WebServiceException, XPathException

public class RuntimeException
extends Exception

This is the base-class of all unchecked exceptions. Unchecked exceptions do not need to be declared in the method signatur and the compiler does not enforce that a handler is defined for them.

RuntimeExceptions normally occur as a bug in a program and they are often not recoverable by the user.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
RuntimeException()
          Constructor for a RuntimeException with no detail message.
RuntimeException(String s)
          Constructor for a RuntimeException with given detail message.
RuntimeException(String s, Throwable ex)
          Constructor for a RuntimeException with given detail message and cause.
RuntimeException(Throwable ex)
          Constructor for a RuntimeException with given cause and detail message set to ex.toString().
 
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

RuntimeException

public RuntimeException()
Constructor for a RuntimeException with no detail message.


RuntimeException

public RuntimeException(String s)
Constructor for a RuntimeException with given detail message.

ensures

    (s != null IMPLIES getMessage().equals(s));
 

Parameters:
s - the detail message.

RuntimeException

public RuntimeException(Throwable ex)
Constructor for a RuntimeException with given cause and detail message set to ex.toString().

ensures

    (ex != null IMPLIES getCause() == ex && getMessage().equals(ex.toString()));
 

Parameters:
ex - the cause why this exception was created or null if none.
Since:
1.4

RuntimeException

public RuntimeException(String s,
                        Throwable ex)
Constructor for a RuntimeException with given detail message and cause.

ensures

    (s  != null IMPLIES getMessage().equals(s),
     ex != null IMPLIES getCause() == ex);
 

Parameters:
s - the detail message.
ex - the cause why this exception was created or null if none.
Since:
1.4

aicas logoJamaica 6.4 release 1

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