Package org.platformlayer

Examples of org.platformlayer.CustomerFacingException


    ErrorResponse error = new ErrorResponse();
    error.message = e.getMessage();

    if (e instanceof CustomerFacingException) {
      CustomerFacingException cfe = (CustomerFacingException) e;
      error.code = cfe.getCode();

      for (CustomerFacingException.Info info : cfe.getInfo()) {
        ErrorDetail errorInfo = new ErrorDetail();
        errorInfo.code = info.getCode();
        errorInfo.field = info.getField();
        errorInfo.message = info.getMessage();
View Full Code Here

TOP

Related Classes of org.platformlayer.CustomerFacingException

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.