sapp/errors.py (11 lines of code) (raw):

# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. TYPECHECK_ERROR = 102 class AIException(Exception): pass class AIRecoverableException(AIException): pass class AIProcessException(AIRecoverableException): # pyre-fixme[2]: Parameter must be annotated. # pyre-fixme[2]: Parameter must be annotated. def __init__(self, message, error_code) -> None: super().__init__(message) # pyre-fixme[4]: Attribute must be annotated. self.error_code = error_code class ParseTypeException(Exception): pass