PermissionDeniedException.java

key0-96/src/exceptions/PermissionDeniedException.java · 555 B

From the archive key0-96.tar.bz2

Download the archive   « Back to the archive contents

package key;

/**
  *  Kind of like an AccessViolation, but not so serious (it isn't
  *  logged, for instance).  It just means that you've tried to
  *  do something you can't, but something that isn't necessarily
  *  malicious.
 */
public class PermissionDeniedException
extends RuntimeException
implements UserOutputException
{
	Object on;
	
	public PermissionDeniedException( Object o, String msg )
	{
		super( msg );
		on = o;
	}
	
	public void send( InteractiveConnection ic )
	{
		ic.sendFailure( "Permission denied while " + getMessage() );
	}
}

Site Stats

Snippets: 1791
Codebases: 571