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 © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.