summaryrefslogtreecommitdiff
path: root/lib/backupstore/BackupProtocol.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-10-31 22:09:42 +0000
committerChris Wilson <chris+github@qwirx.com>2014-10-31 22:09:42 +0000
commite8efeb785c158581be729aa1dee122f50789ac86 (patch)
treedd1fda26285a9255411c607b6910b79a89877242 /lib/backupstore/BackupProtocol.h
parent9236e14007c068d7d9294d90aeb976eb9cecab84 (diff)
Refactor handling of exceptions in protocol server command executors.
Add a standard method to Replyable that will be called if a recoverable exception (a BoxException) occurs, and can return a protocol Message to be sent to the client, such as an error code for various standard errors, or rethrow the exception. If you want something different, catch exceptions and return the desired reply yourself, or you'll get the default handling.
Diffstat (limited to 'lib/backupstore/BackupProtocol.h')
-rw-r--r--lib/backupstore/BackupProtocol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backupstore/BackupProtocol.h b/lib/backupstore/BackupProtocol.h
index 0e0988f7..d9070c73 100644
--- a/lib/backupstore/BackupProtocol.h
+++ b/lib/backupstore/BackupProtocol.h
@@ -19,7 +19,7 @@
// Class
// Name: BackupProtocolLocal2
// Purpose: BackupProtocolLocal with a few more IQ points
-// Created: 2003/08/21
+// Created: 2014/09/20
//
// --------------------------------------------------------------------------
class BackupProtocolLocal2 : public BackupProtocolLocal