Please note that this translation of the specification is the result of a java.net community project ( https://jdk5-api-pt-br.dev.java.net/ ). The official version of the specification is the US English language version which can be found at http://java.sun.com/j2se/1.5.0/docs/api/. In case of disputes, the authoritative version of the specification is the original, English document.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
public class IllegalStateException
Sinaliza que um método foi invocado em momento ilegal ou inapropriado. Em outras palavras, o ambiente Java ou a aplicação Java não está em um estado apropriado para a operação requerida.
| Constructor Summary | |
|---|---|
IllegalStateException()
Constrói um IllegalStateException sem mensagem de detalhe. |
|
IllegalStateException(String s)
Constrói um IllegalStateException com a mensagem de detalhe especificada. |
|
IllegalStateException(String message,
Throwable cause)
Constrói uma nova exceção com a mensagem de detalhe e a causa especificadas. |
|
IllegalStateException(Throwable cause)
Constrói uma nova exceção com a causa especificada e uma mensagem de detalhe (cause==null ? null : cause.toString()) (o que tipicamente contém a classe e a mensagem de detalhe de cause). |
|
| 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 |
|---|
public IllegalStateException()
public IllegalStateException(String s)
s - a String que contém a mensagem de detalhe
public IllegalStateException(String message,
Throwable cause)
Note that the detail message associated with cause is
not automatically incorporated in this exception's detail
message.
message - a mensagem de detalhe (que é salva para recuperação posterior
pelo método Throwable.getMessage()).cause - a causa (que é salva para recuperação posterior
pelo método Throwable.getCause()).
(Um valor null é permitido, e indica que a causa é
inexistente ou desconhecida.)public IllegalStateException(Throwable cause)
PrivilegedActionException).
cause - a causa (que é salva para recuperação posterior
pelo método Throwable.getCause()).
(Um valor null é permitido, e indica que a causa é
inexistente ou desconhecida.)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Copyright 2006 Sun Microsystems, Inc. Todos os direitos reservados. O uso está sujeito aos termos da licensa.