summaryrefslogtreecommitdiffstats
path: root/src/main/thrift
diff options
context:
space:
mode:
authorNils Schwabe2014-04-30 11:49:53 +0200
committerNils Schwabe2014-04-30 11:49:53 +0200
commit4e410ed8de6b7bfaa26fc37a933de42a2f827dc9 (patch)
tree8589f509c072fcf77d973fb095a98ea59f30b232 /src/main/thrift
parentAdd check file size of uploading files and process automatically (diff)
downloadmasterserver-4e410ed8de6b7bfaa26fc37a933de42a2f827dc9.tar.gz
masterserver-4e410ed8de6b7bfaa26fc37a933de42a2f827dc9.tar.xz
masterserver-4e410ed8de6b7bfaa26fc37a933de42a2f827dc9.zip
Add some new exceptions for problems with image's data
Diffstat (limited to 'src/main/thrift')
-rw-r--r--src/main/thrift/imagemaster.thrift18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/main/thrift/imagemaster.thrift b/src/main/thrift/imagemaster.thrift
index 3171416..97f4f27 100644
--- a/src/main/thrift/imagemaster.thrift
+++ b/src/main/thrift/imagemaster.thrift
@@ -26,7 +26,12 @@ enum AuthenticationError {
enum ServerAuthenticationError {
GENERIC_ERROR,
INVALID_ORGANIZATION,
- BANNED_NETWORK,
+ BANNED_NETWORK
+}
+
+enum ImageDataError {
+ INVALID_DATA,
+ UNKNOWN_IMAGE
}
exception AuthorizationException {
@@ -47,6 +52,11 @@ exception ServerAuthenticationException {
2: string message
}
+exception ImageDataException {
+ 1: ImageDataError number,
+ 2: string message
+}
+
struct UserInfo {
1: string userId,
2: string firstName,
@@ -92,13 +102,13 @@ service ImageServer {
UserInfo getUserFromToken(1:Token token) throws (1:InvalidTokenException failure),
- string startServerAuthentication(1:string organization),
+ string startServerAuthentication(1:string organization) throws (1: ServerAuthenticationException failure),
ServerSessionData serverAuthenticate(1:string organization, 2:binary challengeResponse) throws (1:ServerAuthenticationException failure),
- FtpCredentials submitImage(1:string serverSessionId, 2:ImageData imageDescription) throws (1:AuthorizationException failure),
+ FtpCredentials submitImage(1:string serverSessionId, 2:ImageData imageDescription) throws (1:AuthorizationException failure, 2: ImageDataException failure2),
- bool finshedUpload(1:string ftpUser, 2:ImageData imageDescription)
+ bool finshedUpload(1:string ftpUser, 2:ImageData imageDescription) throws (1: ImageDataException failure)
}