brooklyn.util.exceptions.PropagatedRuntimeException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brooklyn-utils-common Show documentation
Show all versions of brooklyn-utils-common Show documentation
Utility classes and methods developed for Brooklyn but not dependendent on Brooklyn or much else
package brooklyn.util.exceptions;
/** Indicates a runtime exception which has been propagated via {@link Exceptions#propagate} */
public class PropagatedRuntimeException extends RuntimeException {
private static final long serialVersionUID = 3959054308510077172L;
/** Callers should typically *not* attempt to summarise the cause in the message here; use toString() to get extended information */
public PropagatedRuntimeException(String message, Throwable cause) {
super(message, cause);
}
public PropagatedRuntimeException(Throwable cause) {
super("", cause);
}
@Override
public String toString() {
return super.toString()+": "+Exceptions.collapseText(getCause());
}
}