Package com.khs.sherpa.exception

Examples of com.khs.sherpa.exception.SherpaRuntimeException


    SessionTokenService service = null;
    Map<String, Object> resp = new HashMap<String, Object>();
    try {
      service = applicationContext.getManagedBean(SessionTokenService.class);
    } catch (NoSuchManagedBeanExcpetion e) {
      throw new SherpaRuntimeException(e);
    }

    resp.put("userid", userid);
    resp.put("token", token);
    resp.put("status", service.isActive(userid, token));
View Full Code Here


        String[] roles = token.getRoles();
        token.setRoles(Util.append(roles, "SHERPA_ADMIN"));
      }
      return token;
    } catch (NoSuchManagedBeanExcpetion e) {
      throw new SherpaRuntimeException(e);
    }
  }
View Full Code Here

      Object obj = method.invoke(target, this.getParams(method));
      return obj;
    } catch (Exception e) {
        if(e.getCause() != null && e.getCause().getClass().isAssignableFrom(SherpaRuntimeException.class)) {
          logger.throwing(target.getClass().getName(), method.getName(), e.getCause());
          throw new SherpaRuntimeException(e.getCause().getMessage());
        }
        logger.throwing(target.getClass().getName(), method.getName(), e);
      throw new SherpaRuntimeException("unable to execute method ["+method.getName()+"] in class ["+target.getClass().getCanonicalName()+"]", e);
    } finally {
     
    }
  }
View Full Code Here

TOP

Related Classes of com.khs.sherpa.exception.SherpaRuntimeException

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.