Package com.daikit.commons.shared.exception

Examples of com.daikit.commons.shared.exception.DkException


    }
    // Create GwtLibRpcException from other Exceptions part of the normal process (not unexpected exceptions)
    if (SecurityException.class.equals(e.getClass()))
    {
      log.error(e.getMessage(), e);
      throw new DkException(new DkExceptionContext(e.getMessage()), e);
    }
    // if we are here that's because handleApplicationSpecificException(e) didn't handle
    // the given exception e. So a unknown exception is thrown.
    log.error(DkException.UNKNWOWN_ERROR_MESSAGE, e);
    throw new DkException(new DkExceptionContext(DkException.UNKNWOWN_ERROR_MESSAGE), e);
  }
View Full Code Here


        }
        stringBuilder.append(newLine).append(newLine);
      }
      if (exception instanceof DkException)
      {
        final DkException gwtlibException = (DkException) exception;
        stringBuilder.append("Server Error Context: ").append(newLine);
        for (final Entry<String, String> entry : gwtlibException.getContext().getContextMap().entrySet())
        {
          stringBuilder.append(entry.getKey()).append(": ").append(entry.getValue()).append(newLine);
        }
        stringBuilder.append(newLine).append(newLine);
      }
      if (exception.getMessage() != null)
      {
        stringBuilder.append("Exception Message: ");
      }
      if (exception instanceof DkException)
      {
        final DkException gwtlibException = (DkException) exception;
        final Iterator<Couple<String, List<String>>> it = gwtlibException.getContext().getStackTrace().iterator();
        while (it.hasNext())
        {
          final Couple<String, List<String>> couple = it.next();
          stringBuilder.append(couple.first).append(newLine);
          for (final String stackTraceElement : couple.second)
View Full Code Here

TOP

Related Classes of com.daikit.commons.shared.exception.DkException

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.