Class ErrorWrapper

java.lang.Object
com.qwazr.server.client.ErrorWrapper

public class ErrorWrapper
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ErrorWrapper()  
  • Method Summary

    Modifier and Type Method Description
    static <T,​ E extends java.lang.Exception>
    T
    bypass​(com.qwazr.utils.concurrent.CallableEx<T,​E> callable, int... statusCode)  
    static int noError​(ServerException e, int... statusCodes)  
    static boolean noError​(java.lang.Runnable runnable, int... statusCode)  
    static int noError​(javax.ws.rs.WebApplicationException e, int... statusCodes)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • noError

      public static int noError​(javax.ws.rs.WebApplicationException e, int... statusCodes)
    • noError

      public static int noError​(ServerException e, int... statusCodes)
    • noError

      public static boolean noError​(java.lang.Runnable runnable, int... statusCode)
    • bypass

      public static <T,​ E extends java.lang.Exception> T bypass​(com.qwazr.utils.concurrent.CallableEx<T,​E> callable, int... statusCode) throws E extends java.lang.Exception
      Throws:
      E extends java.lang.Exception