Class ErrorHandler

java.lang.Object
fi.meliora.testlab.ext.crest.ErrorHandler
All Implemented Interfaces:
org.codegist.crest.handler.ErrorHandler

public class ErrorHandler extends Object implements org.codegist.crest.handler.ErrorHandler
Our Testlab API call error handler.
Author:
Marko Kanala
  • Constructor Details

    • ErrorHandler

      public ErrorHandler()
  • Method Details

    • handle

      public <T> T handle(org.codegist.crest.io.Request request, Exception e) throws Exception
      Specified by:
      handle in interface org.codegist.crest.handler.ErrorHandler
      Throws:
      Exception
    • getResponseIfAny

      protected String getResponseIfAny(org.codegist.crest.io.Response response)