LimitExceededException.java

key0-96/src/exceptions/LimitExceededException.java · 538 B

From the archive key0-96.tar.bz2

Download the archive   « Back to the archive contents

package key;

/**
  *  Thrown when some arbitrary system resource limit has been exceeded.
  *  For instance, when a container has too many objects placed in it,
  *  when a string is too long, or when a (possibly) infinite loop exceeds
  *  it's quota of hops.
 */
public class LimitExceededException
extends RuntimeException
implements UserOutputException
{
	public LimitExceededException( String msg )
	{
		super( msg );
	}
	
	public void send( InteractiveConnection ic )
	{
		ic.sendFailure( "Limit Exceeded: " + getMessage() );
	}
}

Site Stats

Snippets: 1791
Codebases: 571