public class UndeclaredIOException extends UndeclaredThrowableException
IOException. Note that this exception should not be abused, i.e it should not be
used in place of IOException. It should be used in the Juzu API used to develop an application, which
makes the IOException transparent to the developer, for instance we want to void the developer to care
about the IOException in this situation:
public void index() throws IOException {
template.render();
}
Instead the Template.render() methods wraps the IOException with this unchecked
wrapper and the developer does not have to care about it anymore:
public void index() {
template.render();
}
| Constructor and Description |
|---|
UndeclaredIOException(IOException undeclaredIO) |
| Modifier and Type | Method and Description |
|---|---|
IOException |
getCause() |
getUndeclaredThrowableaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UndeclaredIOException(IOException undeclaredIO)
public IOException getCause()
getCause in class UndeclaredThrowableExceptionCopyright © 2013 eXo Platform SAS. All Rights Reserved.