- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AnnotationTypeMismatchException,ArithmeticException,ArrayStoreException,BufferOverflowException,BufferUnderflowException,CannotRedoException,CannotUndoException,CatalogException,ClassCastException,ClassNotPreparedException,CMMException,CompletionException,ConcurrentModificationException,DataBindingException,DateTimeException,DOMException,DuplicateRequestException,EmptyStackException,EnumConstantNotPresentException,EventException,FileSystemAlreadyExistsException,FileSystemNotFoundException,FindException,IllegalArgumentException,IllegalCallerException,IllegalMonitorStateException,IllegalPathStateException,IllegalStateException,IllformedLocaleException,ImagingOpException,InaccessibleObjectException,IncompleteAnnotationException,InconsistentDebugInfoException,IndexOutOfBoundsException,InternalException,InvalidCodeIndexException,InvalidLineNumberException,InvalidModuleDescriptorException,InvalidModuleException,InvalidRequestStateException,InvalidStackFrameException,JarSignerException,JMRuntimeException,JSException,LayerInstantiationException,LSException,MalformedParameterizedTypeException,MalformedParametersException,MediaException,MirroredTypesException,MissingResourceException,NashornException,NativeMethodException,NegativeArraySizeException,NoSuchDynamicMethodException,NoSuchElementException,NoSuchMechanismException,NullPointerException,ObjectCollectedException,ProfileDataException,ProviderException,ProviderNotFoundException,RangeException,RasterFormatException,RejectedExecutionException,ResolutionException,ResourceRequestDeniedException,SecurityException,SPIResolutionException,SystemException,TypeConstraintException,TypeNotPresentException,UncheckedIOException,UndeclaredThrowableException,UnknownEntityException,UnknownTreeException,UnmodifiableModuleException,UnmodifiableSetException,UnsupportedOperationException,VMDisconnectedException,VMMismatchException,VMOutOfMemoryException,WebServiceException,WrongMethodTypeException,XPathException
public class RuntimeException extends Exception
RuntimeExceptionis the superclass of those exceptions that can be thrown during the normal operation of the Java Virtual Machine.RuntimeExceptionand its subclasses are unchecked exceptions. Unchecked exceptions do not need to be declared in a method or constructor'sthrowsclause if they can be thrown by the execution of the method or constructor and propagate outside the method or constructor boundary.- Since:
- 1.0
- See Also:
- Serialized Form
- See The Java™ Language Specification:
- 11.2 Compile-Time Checking of Exceptions
-
-
Constructor Summary
Constructors Modifier Constructor Description RuntimeException()Constructs a new runtime exception withnullas its detail message.RuntimeException(String message)Constructs a new runtime exception with the specified detail message.RuntimeException(String message, Throwable cause)Constructs a new runtime exception with the specified detail message and cause.protectedRuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Constructs a new runtime exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.RuntimeException(Throwable cause)Constructs a new runtime exception with the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause).
-