-
-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2001 from jmcouffin/rpws-update
rpws updates, mostly docstrings edits from rpws repo
- Loading branch information
Showing
5 changed files
with
141 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,83 @@ | ||
# Revit server execeptions ----------------------------------------------------- | ||
"""Module exceptions.""" | ||
|
||
|
||
# Revit server execeptions ---------------------------------------------------- | ||
class ServerVersionNotSupported(Exception): | ||
"""Server version not supported exception.""" | ||
|
||
pass | ||
|
||
|
||
class ServerConnectionError(Exception): | ||
"""Server connection exception.""" | ||
|
||
pass | ||
|
||
|
||
class ServerTimeoutError(Exception): | ||
"""Server timeout error.""" | ||
|
||
pass | ||
|
||
|
||
class UnhandledException(Exception): | ||
"""General exception for any unhandled exceptions.""" | ||
|
||
pass | ||
|
||
|
||
# Revit Server API http status codes ------------------------------------------ | ||
# Revit Server API http status codes ----------------------------------------- | ||
# 400 | ||
class ServerBadRequestError(Exception): | ||
"""Server bad request error.""" | ||
|
||
pass | ||
|
||
|
||
# 403 | ||
class ServerForbiddenError(Exception): | ||
"""Server forbidden command error.""" | ||
|
||
pass | ||
|
||
|
||
# 404 | ||
class ServerFileNotFound(Exception): | ||
"""Server file or folder not found error.""" | ||
|
||
pass | ||
|
||
|
||
# 405 | ||
class ServerMethodNotAllowedError(Exception): | ||
"""Server method not allowed error.""" | ||
|
||
pass | ||
|
||
|
||
# 414 | ||
class ServerURITooLongError(Exception): | ||
"""Server uri too long error.""" | ||
|
||
pass | ||
|
||
|
||
# 500 | ||
class ServerInternalError(Exception): | ||
"""Server internal error.""" | ||
|
||
pass | ||
|
||
|
||
# 501 | ||
class ServerNotImplemented(Exception): | ||
"""Server not implemented error.""" | ||
|
||
pass | ||
|
||
|
||
# 503 | ||
class ServerServiceUnavailableError(Exception): | ||
"""Server service unavailable error.""" | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.