Save This Page
Home » openjdk-7 » java » lang » [javadoc | source]
java.lang
public class: Exception [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    ProtocolException, InvalidParameterSpecException, UnsupportedDataTypeException, KeyStoreException, NoSuchElementException, NoSuchFieldException, DeleteException, InvalidKeyException, RoleInfoNotFoundException, RuntimeException, TimeoutException, SQLFeatureNotSupportedException, IIOInvalidTreeException, ServerException, InvalidActivityException, JMRuntimeException, JAXBException, IllegalSelectorException, FilerException, AccountLockedException, AccessException, XPathFactoryConfigurationException, ArrayStoreException, OperationNotSupportedException, InvalidAlgorithmParameterException, BadLocationException, SizeLimitExceededException, InvalidPropertiesFormatException, ServiceException, InvalidOpenTypeException, OverlappingFileLockException, CertificateParsingException, FormatterClosedException, NoSuchMethodException, InvalidClassException, CannotProceedException, ServerCloneException, HTTPException, ImagingOpException, SystemException, NotCompliantMBeanException, InvalidRelationTypeException, UnsupportedAddressTypeException, DatatypeConfigurationException, NoSuchPaddingException, XPathFunctionException, NoInitialContextException, InvalidParameterException, SSLProtocolException, AttributeInUseException, NamingSecurityException, SocketTimeoutException, TransformException, CertificateEncodingException, AuthenticationException, UnmodifiableClassException, SyncProviderException, UnknownGroupException, MirroredTypesException, UnmappableCharacterException, NotSupportedException, TypeConstraintException, WriteAbortedException, UnmarshalException, PrinterException, SSLKeyException, SQLRecoverableException, CredentialExpiredException, ArrayIndexOutOfBoundsException, RelationServiceNotRegisteredException, ExemptionMechanismException, StreamCorruptedException, ParseException, IllegalThreadStateException, KeyManagementException, RelationNotFoundException, InvalidTargetObjectTypeException, InvalidAttributeValueException, ClassNotFoundException, SOAPFaultException, HeadlessException, CardException, InvocationTargetException, CertificateException, XMLParseException, NoSuchProviderException, NoninvertibleTransformException, LineUnavailableException, NotYetConnectedException, UnsupportedEncodingException, SQLTransientConnectionException, AsynchronousCloseException, StringIndexOutOfBoundsException, OpenDataException, NoPermissionException, InvalidRelationServiceException, InterruptedNamingException, InvalidObjectException, SSLHandshakeException, ConfigurationException, NoConnectionPendingException, ClosedSelectorException, TypeNotPresentException, RTFParseException, BAD_OPERATION, CertificateException, SignatureException, CertificateNotYetValidException, IllegalFormatFlagsException, RuntimeOperationsException, AckException, SocketException, AWTException, UnsupportedOperationException, IntrospectionException, InvalidDnDOperationException, ClassCastException, MBeanRegistrationException, CMMException, ActivateFailedException, ServiceNotFoundException, CharConversionException, BufferOverflowException, IllegalClassFormatException, IllegalBlockSizeException, ValidationException, MimeTypeParseException, SQLTransientException, CannotUndoException, ConnectException, SQLIntegrityConstraintViolationException, PortUnreachableException, KeyAlreadyExistsException, BindException, RuntimeMBeanException, AccessControlException, DataFormatException, BadBinaryOpValueExpException, NoSuchObjectException, NoSuchMechanismException, UnsupportedCallbackException, PropertyException, DigestException, MalformedParameterizedTypeException, RasterFormatException, InvalidMidiDataException, IllegalAccessException, BatchUpdateException, HttpRetryException, NonReadableChannelException, ReflectionException, TransactionRequiredException, LoginException, InvalidTransactionException, NoMagicException, BufferUnderflowException, IllegalArgumentException, IllegalCharsetNameException, SchemaViolationException, IllegalPathStateException, JMException, DuplicateFormatFlagsException, MissingFormatArgumentException, UndeclaredThrowableException, UnknownObjectException, InvalidKeySpecException, SQLInvalidAuthorizationSpecException, PatternSyntaxException, AccountNotFoundException, ChangedCharSetException, SSLPeerUnverifiedException, IIODOMException, NotContextException, InvalidRequestException, LastOwnerException, ExportException, OptionalDataException, SaslException, RMISecurityException, UnrecoverableKeyException, EnumConstantNotPresentException, ExpandVetoException, EmptyStackException, DestroyFailedException, CertificateExpiredException, NumberFormatException, RemoteException, ParsingException, MalformedLinkException, InstanceAlreadyExistsException, IllegalBlockingModeException, UnknownServiceException, ObjectStreamException, ParserConfigurationException, IllegalComponentStateException, InvalidRoleInfoException, AccountException, FailedLoginException, IncompleteAnnotationException, KeyException, KeySelectorException, ClosedByInterruptException, ClosedChannelException, SQLNonTransientConnectionException, TransactionRolledbackException, UnknownHostException, ServerRuntimeException, MalformedInputException, JAXRPCException, MissingResourceException, SystemException, PropertyVetoException, ConnectException, CertStoreException, ConcurrentModificationException, SQLWarning, CertificateNotYetValidException, BadPaddingException, SQLTimeoutException, InputMismatchException, SyncFactoryException, JMXProviderException, BadAttributeValueExpException, CertPathBuilderException, RollbackException, StubNotFoundException, TransformerConfigurationException, SQLSyntaxErrorException, SQLTransactionRollbackException, SSLException, IllegalFormatConversionException, InsufficientResourcesException, InstanceNotFoundException, CardNotPresentException, CRLException, ProviderException, OperationsException, MBeanException, NonWritableChannelException, UnsupportedCapabilityException, ExecutionException, CannotRedoException, CredentialNotFoundException, InterruptedIOException, PrinterIOException, IndexOutOfBoundsException, NameAlreadyBoundException, UnsupportedLookAndFeelException, AuthenticationNotSupportedException, NotBoundException, SQLClientInfoException, IllegalMonitorStateException, AnnotationTypeMismatchException, SkeletonNotFoundException, UnknownHostException, NameNotFoundException, FileLockInterruptionException, JarException, UnmarshalException, RoleNotFoundException, CancelledKeyException, HeuristicCommitException, RegistryException, NoSuchAttributeException, PartialResultException, CertificateRevokedException, XPathExpressionException, SQLDataException, LinkException, CancellationException, IllegalFormatCodePointException, UnknownTypeException, WebServiceException, ReferralException, EOFException, AclNotFoundException, ArithmeticException, SOAPException, NotYetBoundException, ActivationException, UnresolvedAddressException, InvalidAttributeValueException, LinkLoopException, TimeLimitExceededException, TooManyListenersException, UnsupportedFlavorException, XMLSignatureException, AccountExpiredException, UnknownFormatFlagsException, LdapReferralException, MimeTypeParseException, UnmodifiableSetException, SaveException, XAException, IOException, NoSuchAlgorithmException, MarshalException, NamingException, CredentialException, IllegalFormatException, CertificateParsingException, RejectedExecutionException, IntrospectionException, RowSetWarning, MonitorSettingException, PrintException, UnrecoverableEntryException, ReadOnlyBufferException, ConnectIOException, UnknownAnnotationValueException, InstantiationException, NoRouteToHostException, SQLNonTransientException, UnsupportedAudioFileException, InvalidKeyException, IllegalFormatWidthException, UnexpectedException, FormatFlagsConversionMismatchException, CertificateExpiredException, AttributeModificationException, XPathException, MarshalException, RelationTypeNotFoundException, UnknownFormatConversionException, ZipException, ContextNotEmptyException, ListenerNotFoundException, SecurityException, CommunicationException, InvalidNameException, ActivityCompletedException, ProtocolException, UnsupportedCharsetException, AuthenticationException, SQLException, MirroredTypeException, PrinterAbortException, SocketSecurityException, SOAPFaultException, InvalidSearchControlsException, RuntimeErrorException, InvalidApplicationException, JMXServerErrorException, FontFormatException, AlreadyBoundException, UnexpectedObjectException, SyncFailedException, InvalidMarkException, ServerError, URIReferenceException, MalformedObjectNameException, FileNotFoundException, CharacterCodingException, RefreshFailedException, ScriptException, TransformerException, PrivilegedActionException, UnknownElementException, FindException, MissingFormatWidthException, BrokenBarrierException, NegativeArraySizeException, ShortBufferException, SkeletonMismatchException, RelationException, AttributeNotFoundException, InvalidRelationIdException, GeneralSecurityException, InvalidRoleValueException, NullPointerException, BadStringOperationException, HeuristicMixedException, DataTruncation, InterruptedException, IIOException, LimitExceededException, ActivityRequiredException, BackingStoreException, InvalidSearchFilterException, MarshalException, ServerNotActiveException, InvalidAttributeIdentifierException, CloneNotSupportedException, NotActiveException, CertificateEncodingException, InvalidPreferencesFormatException, ServiceUnavailableException, ConnectionPendingException, AlreadyConnectedException, SerialException, ProfileDataException, URISyntaxException, IllegalStateException, MidiUnavailableException, MalformedURLException, InvalidAttributesException, IllegalFormatPrecisionException, CertPathValidatorException, NotOwnerException, JAXRException, HeuristicRollbackException, NotSerializableException, XMLStreamException, UTFDataFormatException

The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
Field Summary
static final  long serialVersionUID     
Constructor:
 public Exception() 
 public Exception(String message) 
    Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to #initCause .
    Parameters:
    message - the detail message. The detail message is saved for later retrieval by the #getMessage() method.
 public Exception(Throwable cause) 
    Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for exceptions that are little more than wrappers for other throwables (for example, java.security.PrivilegedActionException ).
    Parameters:
    cause - the cause (which is saved for later retrieval by the #getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    since: 1.4 -
 public Exception(String message,
    Throwable cause) 
    Constructs a new exception with the specified detail message and cause.

    Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

    Parameters:
    message - the detail message (which is saved for later retrieval by the #getMessage() method).
    cause - the cause (which is saved for later retrieval by the #getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    since: 1.4 -
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait