FBExceptionHandler.h 818 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <Foundation/Foundation.h>
  10. #import <WebDriverAgentLib/FBWebServer.h>
  11. NS_ASSUME_NONNULL_BEGIN
  12. /**
  13. Class used to handle exceptions raised by command handlers
  14. */
  15. @interface FBExceptionHandler : NSObject
  16. /**
  17. Handles 'exception' for 'webServer' raised while handling 'response'
  18. @param exception exception that needs handling
  19. @param response response related to that exception
  20. */
  21. - (void)handleException:(NSException *)exception forResponse:(RouteResponse *)response;
  22. @end
  23. NS_ASSUME_NONNULL_END