Examples of ExceptionByErrorCode


Examples of org.orgama.shared.except.ExceptionByErrorCode

public abstract class OrgAsyncCallback<T> implements AsyncCallback<T> {
   
    @Override
    public void onFailure(Throwable t) {
   
    ExceptionByErrorCode ebe;
   
    if (t instanceof OrgActionException) {
       ebe = (ExceptionByErrorCode)t.getCause();
    }
    else {
      ebe = getEbeCause(t);
    }
       
        if (ebe == null) {
            ebe = new ExceptionByErrorCode(OrgErrorCodes.MODULE_CODE,
                    OrgErrorCodes.UNKOWN_ERROR, t.getMessage(), t);
        }
           
        Logger.error("Error: " + t.getClass().getName() +
                " - " + t.getMessage(), t);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.