public class RuntimeException extends Exception
RuntimeException
is the superclass of those
exceptions that can be thrown during the normal operation of the
Java Virtual Machine.
A method is not required to declare in its throws
clause any subclasses of RuntimeException
that might
be thrown during the execution of the method but not caught.
Constructor and Description |
---|
RuntimeException()
Constructs a
RuntimeException with no detail message. |
RuntimeException(String s)
Constructs a
RuntimeException with the specified
detail message. |
public RuntimeException()
RuntimeException
with no detail message.public RuntimeException(String s)
RuntimeException
with the specified
detail message.s
- the detail message.Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.