X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fchannel%2FRequestException.java;fp=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fchannel%2FRequestException.java;h=8d77713cc791f542e3309f22a62effc3321ce033;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/RequestException.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/RequestException.java new file mode 100644 index 000000000..8d77713cc --- /dev/null +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/RequestException.java @@ -0,0 +1,26 @@ +package org.simantics.databoard.channel; + +import java.io.IOException; +import java.util.concurrent.TimeoutException; + +/** + * RequestException is thrown to a requester of a service when there was a + * problem fulfilling the request. Typical error is problem with communication + * channel or with fulfulling the service. + * + * Cause is (typically) one of these: + * o Communication problems {@link IOException} + * o Timeout {@link TimeoutException} + * o Service handler problem {@link ServiceException} + * + * @author Toni Kalajainen + */ +public class RequestException extends Exception { + + private static final long serialVersionUID = 1L; + + public RequestException(Throwable cause) { + super(cause); + } + +}