FBExceptions.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 <XCTest/XCTest.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. /*! Exception used to notify about missing session */
  12. extern NSString *const FBSessionDoesNotExistException;
  13. /*! Exception used to notify about session creation issues */
  14. extern NSString *const FBSessionCreationException;
  15. /*! Exception used to notify about application deadlock */
  16. extern NSString *const FBApplicationDeadlockDetectedException;
  17. /*! Exception used to notify about unknown attribute */
  18. extern NSString *const FBElementAttributeUnknownException;
  19. /*! Exception used to notify about invalid argument */
  20. extern NSString *const FBInvalidArgumentException;
  21. /*! Exception used to notify about invisibility of an element while trying to interact with it */
  22. extern NSString *const FBElementNotVisibleException;
  23. /*! Exception used to notify about a timeout */
  24. extern NSString *const FBTimeoutException;
  25. /**
  26. The exception happends if the cached element does not exist in DOM anymore
  27. */
  28. extern NSString *const FBStaleElementException;
  29. /**
  30. The exception happends if the provided XPath expession cannot be compiled because of a syntax error
  31. */
  32. extern NSString *const FBInvalidXPathException;
  33. /**
  34. The exception happends if any internal error is triggered during XPath matching procedure
  35. */
  36. extern NSString *const FBXPathQueryEvaluationException;
  37. /*! Exception used to notify about invalid class chain query */
  38. extern NSString *const FBClassChainQueryParseException;
  39. /*! Exception used to notify about application crash */
  40. extern NSString *const FBApplicationCrashedException;
  41. /*! Exception used to notify about the application is not installed */
  42. extern NSString *const FBApplicationMissingException;
  43. NS_ASSUME_NONNULL_END