Package com.mvp4g.client

Examples of com.mvp4g.client.Mvp4gException


   * @see com.mvp4g.client.event.EventBus#addHandler(java.lang.Class, boolean)
   */
  public <T extends EventHandlerInterface<?>> T addHandler( Class<T> handlerClass, boolean bind ) throws Mvp4gException {
    T handler = createHandler( handlerClass );
    if ( handler == null ) {
      throw new Mvp4gException(
          "Handler with type "
              + handlerClass.getName()
              + " couldn't be created by the Mvp4g. Have you forgotten to set multiple attribute to true for this handler or are you trying to create an handler that belongs to another module (another type of event bus injected in this handler)?" );
    }

View Full Code Here


   * @param eventName
   *            name of the event dispatched while error is thrown
   */
  protected void handleClassCastException( ClassCastException e, String eventName ) {
    if ( e.getStackTrace()[0].getClassName().equals( this.getClass().getName() ) ) {
      throw new Mvp4gException( "Class of the object sent with event " + eventName + " is incorrect." );
    }
    throw e;
  }
View Full Code Here

TOP

Related Classes of com.mvp4g.client.Mvp4gException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.