All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.protege.webprotege.dispatch.ActionHandlerNotFoundException Maven / Gradle / Ivy

The newest version!
package edu.stanford.protege.webprotege.dispatch;

import edu.stanford.protege.webprotege.common.Request;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * Author: Matthew Horridge
* Stanford University
* Bio-Medical Informatics Research Group
* Date: 19/02/2013 *

* Describes the case where an {@link ActionHandler} could not be found to execute a given action. *

*/ public class ActionHandlerNotFoundException extends RuntimeException { private final Request action; /** * Constructs an ActionHandlerNotFoundException for the specified action. * @param action The action for which a handler could not be found. Not {@code null}. * @throws NullPointerException if {@code action} is {@code null}. */ public ActionHandlerNotFoundException(Request action) { this.action = checkNotNull(action); } public Request getAction() { return action; } /** * Returns the detail message string of this throwable. * @return the detail message string of this Throwable instance * (which may be null). */ @Override public String getMessage() { return "Action handler not found: " + action.getClass().getName(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy