Package org.jboss.errai.ui.nav.client.local.api

Examples of org.jboss.errai.ui.nav.client.local.api.PageNotFoundException


   */
  public <W extends IsWidget> PageNode<W> getPage(String name) {
    @SuppressWarnings("unchecked")
    PageNode<W> page = (PageNode<W>) pagesByName.get(name);
    if (page == null) {
      throw new PageNotFoundException("Page not found: \"" + name + "\"");
    }
    return page;
  }
View Full Code Here


        @SuppressWarnings({ "unchecked" })
        PageNode<W> page = (PageNode<W>) e.getValue();
        return page;
      }
    }
    throw new PageNotFoundException("No page with a widget type of " + type.getName() + " exists");
  }
View Full Code Here

    } catch (RedirectLoopException e) {
      throw e;
    } catch (RuntimeException e) {
      if (toPageInstance == null)
        // This is an extremely unlikely case, so throwing an exception is preferable to going through the navigation error handler.
        throw new PageNotFoundException("There is no page of type " + toPage.getName() + " in the navigation graph.");
      else
        navigationErrorHandler.handleInvalidPageNameError(e, toPageInstance.name());
    }
   
  }
View Full Code Here

      keyValuePairs = null;
    }

    String pageName = parseValues(pageInfo, mapBuilder);
    if (pageName == null)
      throw new PageNotFoundException("Invalid URL \"" + URL.decodePathSegment(url) + "\" could not be mapped to any page.");
   
    if (keyValuePairs != null) {
     parseKeyValuePairs(keyValuePairs, mapBuilder);
    }
   
View Full Code Here

    } catch (RedirectLoopException e) {
      throw e;
    } catch (RuntimeException e) {
      if (toPageInstance == null)
        // This is an extremely unlikely case, so throwing an exception is preferable to going through the navigation error handler.
        throw new PageNotFoundException("There is no page of type " + toPage.getName() + " in the navigation graph.");
      else
        navigationErrorHandler.handleError(e, toPageInstance.name());
    }
   
  }
View Full Code Here

   */
  public <W extends IsWidget> PageNode<W> getPage(String name) {
    @SuppressWarnings("unchecked")
    PageNode<W> page = (PageNode<W>) pagesByName.get(name);
    if (page == null) {
      throw new PageNotFoundException("Page not found: \"" + name + "\"");
    }
    return page;
  }
View Full Code Here

        @SuppressWarnings({ "unchecked", "UnnecessaryLocalVariable" })
        PageNode<W> page = (PageNode<W>) e.getValue();
        return page;
      }
    }
    throw new PageNotFoundException("No page with a widget type of " + type.getName() + " exists");
  }
View Full Code Here

    } catch (RedirectLoopException e) {
      throw e;
    } catch (RuntimeException e) {
      if (toPageInstance == null)
        // This is an extremely unlikely case, so throwing an exception is preferable to going through the navigation error handler.
        throw new PageNotFoundException("There is no page of type " + toPage.getName() + " in the navigation graph.");
      else
        navigationErrorHandler.handleError(e, toPageInstance.name());
    }
   
  }
View Full Code Here

TOP

Related Classes of org.jboss.errai.ui.nav.client.local.api.PageNotFoundException

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.