Class ErrorInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    public class ErrorInterceptor
    extends Object
    implements okhttp3.Interceptor
    The ErrorInterceptor class is used to intercept all responses with erroneous response codes.
    • Constructor Detail

      • ErrorInterceptor

        public ErrorInterceptor()
    • Method Detail

      • intercept

        public okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)
                                   throws IOException
        Specified by:
        intercept in interface okhttp3.Interceptor
        Throws:
        IOException