public class InvalidContentException extends IOException
Constructor and Description |
---|
InvalidContentException(String message,
Throwable cause)
Constructs an
InvalidContentException with the specified detail
message and cause. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the cause of this exception or
null if no cause
was specified when this exception was created. |
Throwable |
initCause(Throwable t)
The cause of this exception can only be set when constructed.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Throwable getCause()
null
if no cause
was specified when this exception was created.public Throwable initCause(Throwable t)
initCause
in class Throwable
t
- Cause of the exception.IllegalStateException
- This method will always throw an
IllegalStateException
since the cause of this
exception can only be set when constructed.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.