Package br.gov.frameworkdemoiselle.exception

Examples of br.gov.frameworkdemoiselle.exception.ApplicationException


    return result;
  }

  public static FacesMessage parse(final Throwable throwable) {
    FacesMessage facesMessage = new FacesMessage();
    ApplicationException annotation = throwable.getClass().getAnnotation(ApplicationException.class);

    if (annotation != null) {
      facesMessage.setSeverity(parse(annotation.severity()));
    } else {
      facesMessage.setSeverity(SEVERITY_ERROR);
    }

    if (throwable.getMessage() != null) {
View Full Code Here


    return result;
  }

  public static FacesMessage parse(final Throwable throwable) {
    FacesMessage facesMessage = new FacesMessage();
    ApplicationException annotation = throwable.getClass().getAnnotation(ApplicationException.class);

    if (annotation != null) {
      facesMessage.setSeverity(parse(annotation.severity()));
    } else {
      facesMessage.setSeverity(SEVERITY_ERROR);
    }

    if (throwable.getMessage() != null) {
View Full Code Here

TOP

Related Classes of br.gov.frameworkdemoiselle.exception.ApplicationException

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.