Skip to content

Commit

Permalink
RSDK-4646 Add NoCaptureToStoreError to SDK (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaywux authored Aug 24, 2023
1 parent a80ae6c commit e05d2c9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/viam/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,13 @@ class ValidationError(ViamGRPCError):
def __init__(self, message: str):
self.message = message
self.grpc_code = Status.INVALID_ARGUMENT


class NoCaptureToStoreError(ViamGRPCError):
"""
Exception raised in filter module to signal that data capture should not be stored
"""

def __init__(self):
self.message = "no capture from filter module" # Do not change the contents of this string
self.grpc_code = Status.FAILED_PRECONDITION

0 comments on commit e05d2c9

Please sign in to comment.