<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="inheritance"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">java.lang.Throwable</a>
<divclass="inheritance"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.html"title="class or interface in java.lang"class="external-link">java.lang.Exception</a>
<divclass="inheritance"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/RuntimeException.html"title="class or interface in java.lang"class="external-link">java.lang.RuntimeException</a>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/Serializable.html"title="class or interface in java.io"class="external-link">Serializable</a></code></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">ServiceException</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/RuntimeException.html"title="class or interface in java.lang"class="external-link">RuntimeException</a></span></div>
<divclass="block">This class is used to represent a service exception.
When a <ahref="IService.html"title="interface in io.github.simplexdevelopment.api"><code>IService</code></a> is called that has not been registered with a <ahref="../scheduler/ServicePool.html"title="class in io.github.simplexdevelopment.scheduler"><code>ServicePool</code></a>,
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(io.github.simplexdevelopment.api.IService)"class="member-name-link">ServiceException</a><wbr>(<ahref="IService.html"title="interface in io.github.simplexdevelopment.api">IService</a> service)</code></div>
<divclass="col-last even-row-color">
<divclass="block">Constructs a new service exception which states the service is not present within any service pools.</div>
</div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(java.lang.Throwable)"class="member-name-link">ServiceException</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">Throwable</a> th)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Supplier.html"title="class or interface in java.util.function"class="external-link">Supplier</a><<ahref="ServiceException.html"title="class in io.github.simplexdevelopment.api">ServiceException</a>></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#supplyException(io.github.simplexdevelopment.api.IService)"class="member-name-link">supplyException</a><wbr>(<ahref="IService.html"title="interface in io.github.simplexdevelopment.api">IService</a> service)</code></div>
<h3id="methods-inherited-from-class-java.lang.Throwable">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">Throwable</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)"title="class or interface in java.lang"class="external-link">addSuppressed</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace()"title="class or interface in java.lang"class="external-link">fillInStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#getCause()"title="class or interface in java.lang"class="external-link">getCause</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage()"title="class or interface in java.lang"class="external-link">getLocalizedMessage</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#getMessage()"title="class or interface in java.lang"class="external-link">getMessage</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#getStackTrace()"title="class or interface in java.lang"class="external-link">getStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#getSuppressed()"title="class or interface in java.lang"class="external-link">getSuppressed</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#initCause(java.lang.Throwable)"title="class or interface in java.lang"class="external-link">initCause</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#printStackTrace()"title="class or interface in java.lang"class="external-link">printStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintStream)"title="class or interface in java.lang"class="external-link">printStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#printStackTrace(java.io.PrintWriter)"title="class or interface in java.lang"class="external-link">printStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement%5B%5D)"title="class or interface in java.lang"class="external-link">setStackTrace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html#toString()"title="class or interface in java.lang"class="external-link">toString</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">ServiceException</span><wbr><spanclass="parameters">(<ahref="IService.html"title="interface in io.github.simplexdevelopment.api">IService</a> service)</span></div>
<divclass="block">Constructs a new service exception which states the service is not present within any service pools.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>service</code> - The service that threw the exception.</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">ServiceException</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Throwable.html"title="class or interface in java.lang"class="external-link">Throwable</a> th)</span></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>th</code> - The throwable that was thrown.</dd>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Supplier.html"title="class or interface in java.util.function"class="external-link">Supplier</a><<ahref="ServiceException.html"title="class in io.github.simplexdevelopment.api">ServiceException</a>></span> <spanclass="element-name">supplyException</span><wbr><spanclass="parameters">(<ahref="IService.html"title="interface in io.github.simplexdevelopment.api">IService</a> service)</span></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>service</code> - The service that threw the exception.</dd>
<dt>Returns:</dt>
<dd>A supplier that can be used in conjunction with Reactor.</dd>