blob: 82c0009c37eb297804a66d506cea28d8d4a52a02 [file] [log] [blame]
# Copyright 2021 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""Exceptions raised by methods called by prpc/endpoints handlers."""
class BadRequestException(Exception):
"""The request is invalid."""
class PermissionException(Exception):
"""Permission requirements are not fulfilled."""
class InternalException(Exception):
"""Unexpected error occurred."""
class NotFoundException(Exception):
"""The requested entity is not found."""