Package br.gov.frameworkdemoiselle

Examples of br.gov.frameworkdemoiselle.DemoiselleException


        buffer.append(", ");
        buffer.append(qualifier.getClass().getCanonicalName());
      }

      String message = getBundle().getString("bean-not-found", buffer.toString());
      throw new DemoiselleException(message, cause);
    }

    return instance;
  }
View Full Code Here


    try {
      instance = (T) getReference(manager.getBeans(beanClass), beanClass);

    } catch (NoSuchElementException cause) {
      String message = getBundle().getString("bean-not-found", beanClass.getCanonicalName());
      throw new DemoiselleException(message, cause);
    }

    return instance;
  }
View Full Code Here

    try {
      instance = (T) getReference(manager.getBeans(beanName));

    } catch (NoSuchElementException cause) {
      String message = getBundle().getString("bean-not-found", beanName);
      throw new DemoiselleException(message, cause);
    }

    return instance;
  }
View Full Code Here

   *
   * @param method
   */
  private final void validateHandler(final Method method) {
    if (method.getParameterTypes().length != 1) {
      throw new DemoiselleException(getBundle().getString("must-declare-one-single-parameter",
          method.toGenericString()));
    }
  }
View Full Code Here

      map.put("exception", cause.getMessage());
      Redirector.redirect(config.getExceptionPage(), map);
      handled = true;
    } catch (PageNotFoundException ex) {
      // TODO Colocar a mensagem no bundle
      throw new DemoiselleException(
          "A tela de exibição de erros: \""
              + ex.getViewId()
              + "\" não foi encontrada. Caso o seu projeto possua outra, defina no arquivo de configuração a chave \""
              + "frameworkdemoiselle.handle.application.exception.page" + "\"", ex);
    }
View Full Code Here

    if (!ambiguous.isEmpty()) {
      ambiguous.add(selected);

      String message = getExceptionMessage(type, ambiguous);
      throw new DemoiselleException(message, new AmbiguousResolutionException());
    }
  }
View Full Code Here

   *
   * @param method
   */
  private void validateHandler(final Method method) {
    if (method.getParameterTypes().length != 1) {
      throw new DemoiselleException(getBundle().getString("must-declare-one-single-parameter",
          method.toGenericString()));
    }
  }
View Full Code Here

  public boolean hasPermission(String resource, String operation) {
    throw getException();
  }

  private DemoiselleException getException() {
    return new DemoiselleException(getBundle().getString("authorizer-not-defined",
        SecurityContext.class.getSimpleName()));
  }
View Full Code Here

  }

  @Override
  @Deprecated
  public List<Message> getMessages() {
    throw new DemoiselleException(
        "Este método não é mais suportado desde a versão 2.4.0 do Demoiselle Framework. Considere atualizar a sua aplicação ou o componente com uma nova versão que faça uso do "
            + MessageAppender.class.getCanonicalName() + ".");
  }
View Full Code Here

  }

  @Override
  @Deprecated
  public void clear() {
    throw new DemoiselleException(
        "Este método não é mais suportado desde a versão 2.4.0 do Demoiselle Framework. Considere atualizar a sua aplicação ou o componente com uma nova versão que faça uso do "
            + MessageAppender.class.getCanonicalName() + ".");
  }
View Full Code Here

TOP

Related Classes of br.gov.frameworkdemoiselle.DemoiselleException

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.