Jail/src/main/java/com/graywolf336/jail/exceptions/AsyncJailingNotSupportedException.java
graywolf336 e92ec67ec9 No more async jailing, fixes #73 throws Exception
Added some custom exceptions to be thrown when conditions aren't met.
This might break a lot several things, will test after this build
completes but the unit tests all seemed to run fine.
2015-06-02 22:14:06 -05:00

22 lines
594 B
Java

package com.graywolf336.jail.exceptions;
/**
*
* The exception thrown trying to jail via a thread that is NOT the primary thread.
*
* @author graywolf336
* @since 3.0.0
* @version 1.0.0
*/
public class AsyncJailingNotSupportedException extends Exception {
private static final long serialVersionUID = 2746426914894618352L;
/**
* Creation of an exception from jailing via a thread that is not the primary one.
*
*/
public AsyncJailingNotSupportedException() {
super("Jailing via a thread that is NOT the primary thread is not supported.");
}
}