Changeset f6c6897 for server/lib/gutenbach/ipp/exceptions.py
- Timestamp:
- Dec 20, 2011, 1:47:11 PM (12 years ago)
- Branches:
- no-cups
- Children:
- 6effd50
- Parents:
- 5fe360e
- git-author:
- Jessica B. Hamrick <jhamrick@…> (12/20/11 13:47:11)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (12/20/11 13:47:11)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/ipp/exceptions.py
r5b3a81e rf6c6897 25 25 26 26 class BadRequest(IPPClientException): 27 ipp_error_code = ErrorCodes.BAD_REQUEST )27 ipp_error_code = ErrorCodes.BAD_REQUEST 28 28 29 29 class Forbidden(IPPClientException): 30 ipp_error_code = ErrorCodes.FORBIDDEN )30 ipp_error_code = ErrorCodes.FORBIDDEN 31 31 32 32 class NotAuthenticated(IPPClientException): 33 ipp_error_code = ErrorCodes.NOT_AUTHENTICATED )33 ipp_error_code = ErrorCodes.NOT_AUTHENTICATED 34 34 35 35 class NotAuthorized(IPPClientException): 36 ipp_error_code = ErrorCodes.NOT_AUTHORIZED )36 ipp_error_code = ErrorCodes.NOT_AUTHORIZED 37 37 38 38 class NotPossible(IPPClientException): 39 ipp_error_code = ErrorCodes.NOT_POSSIBLE )39 ipp_error_code = ErrorCodes.NOT_POSSIBLE 40 40 41 41 class Timeout(IPPClientException): 42 ipp_error_code = ErrorCodes.TIMEOUT )42 ipp_error_code = ErrorCodes.TIMEOUT 43 43 44 44 class NotFound(IPPClientException): 45 ipp_error_code = ErrorCodes.NOT_FOUND )45 ipp_error_code = ErrorCodes.NOT_FOUND 46 46 47 47 class Gone(IPPClientException): 48 ipp_error_code = ErrorCodes.GONE )48 ipp_error_code = ErrorCodes.GONE 49 49 50 50 class RequestEntity(IPPClientException): 51 ipp_error_code = ErrorCodes.REQUEST_ENTITY )51 ipp_error_code = ErrorCodes.REQUEST_ENTITY 52 52 53 53 class RequestValue(IPPClientException): 54 ipp_error_code = ErrorCodes.REQUEST_VALUE )54 ipp_error_code = ErrorCodes.REQUEST_VALUE 55 55 56 56 class DocumentFormatNotSupported(IPPClientException): 57 ipp_error_code = ErrorCodes.DOCUMENT_FORMAT )57 ipp_error_code = ErrorCodes.DOCUMENT_FORMAT 58 58 59 59 class Attributes(IPPClientException): 60 ipp_error_code = ErrorCodes.ATTRIBUTES )60 ipp_error_code = ErrorCodes.ATTRIBUTES 61 61 62 62 def __init__(self, message, attrs): … … 68 68 69 69 class UriSchemeNotSupported(IPPClientException): 70 ipp_error_code = ErrorCodes.URI_SCHEME )70 ipp_error_code = ErrorCodes.URI_SCHEME 71 71 72 72 class CharsetNotSupported(IPPClientException): 73 ipp_error_code = ErrorCodes.CHARSET )73 ipp_error_code = ErrorCodes.CHARSET 74 74 75 75 class Conflict(IPPClientException): 76 ipp_error_code = ErrorCodes.CONFLICT )76 ipp_error_code = ErrorCodes.CONFLICT 77 77 78 78 class CompressionNotSupported(IPPClientException): 79 ipp_error_code = ErrorCodes.COMPRESSION_NOT_SUPPORTED )79 ipp_error_code = ErrorCodes.COMPRESSION_NOT_SUPPORTED 80 80 81 81 class CompressionError(IPPClientException): 82 ipp_error_code = ErrorCodes.COMPRESSION_ERROR )82 ipp_error_code = ErrorCodes.COMPRESSION_ERROR 83 83 84 84 class DocumentFormatError(IPPClientException): 85 ipp_error_code = ErrorCodes.DOCUMENT_FORMAT_ERROR )85 ipp_error_code = ErrorCodes.DOCUMENT_FORMAT_ERROR 86 86 87 87 class DocumentAccessError(IPPClientException): 88 ipp_error_code = ErrorCodes.DOCUMENT_ACCESS_ERROR )88 ipp_error_code = ErrorCodes.DOCUMENT_ACCESS_ERROR 89 89 90 90 class AttributesNotSettable(IPPClientException): 91 ipp_error_code = ErrorCodes.ATTRIBUTES_NOT_SETTABLE )91 ipp_error_code = ErrorCodes.ATTRIBUTES_NOT_SETTABLE 92 92 93 93 class IgnoredAllSubscriptions(IPPClientException): 94 ipp_error_code = ErrorCodes.IGNORED_ALL_SUBSCRIPTIONS )94 ipp_error_code = ErrorCodes.IGNORED_ALL_SUBSCRIPTIONS 95 95 96 96 class TooManySubscriptions(IPPClientException): 97 ipp_error_code = ErrorCodes.TOO_MANY_SUBSCRIPTIONS )97 ipp_error_code = ErrorCodes.TOO_MANY_SUBSCRIPTIONS 98 98 99 99 class IgnoredAllNotifications(IPPClientException): 100 ipp_error_code = ErrorCodes.IGNORED_ALL_NOTIFICATIONS )100 ipp_error_code = ErrorCodes.IGNORED_ALL_NOTIFICATIONS 101 101 102 102 class PrintSupportFileNotFound(IPPClientException): 103 ipp_error_code = ErrorCodes.PRINT_SUPPORT_FILE_NOT_FOUND )103 ipp_error_code = ErrorCodes.PRINT_SUPPORT_FILE_NOT_FOUND 104 104 105 105 ### Server error codes 106 106 107 107 class InternalError(IPPServerException): 108 ipp_error_code = ErrorCodes.INTERNAL_ERROR )108 ipp_error_code = ErrorCodes.INTERNAL_ERROR 109 109 110 110 class OperationNotSupported(IPPServerException): 111 ipp_error_code = ErrorCodes.OPERATION_NOT_SUPPORTED )111 ipp_error_code = ErrorCodes.OPERATION_NOT_SUPPORTED 112 112 113 113 class ServiceUnavailable(IPPServerException): 114 ipp_error_code = ErrorCodes.SERVICE_UNAVAILABLE )114 ipp_error_code = ErrorCodes.SERVICE_UNAVAILABLE 115 115 116 116 class VersionNotSupported(IPPServerException): 117 ipp_error_code = ErrorCodes.VERSION_NOT_SUPPORTED )117 ipp_error_code = ErrorCodes.VERSION_NOT_SUPPORTED 118 118 119 119 class DeviceError(IPPServerException): 120 ipp_error_code = ErrorCodes.DEVICE_ERROR )120 ipp_error_code = ErrorCodes.DEVICE_ERROR 121 121 122 122 class TemporaryError(IPPServerException): 123 ipp_error_code = ErrorCodes.TEMPORARY_ERROR )123 ipp_error_code = ErrorCodes.TEMPORARY_ERROR 124 124 125 125 class NotAccepting(IPPServerException): 126 ipp_error_code = ErrorCodes.NOT_ACCEPTING )126 ipp_error_code = ErrorCodes.NOT_ACCEPTING 127 127 128 128 class PrinterBusy(IPPServerException): 129 ipp_error_code = ErrorCodes.PRINTER_BUSY )129 ipp_error_code = ErrorCodes.PRINTER_BUSY 130 130 131 131 class ErrorJobCancelled(IPPServerException): 132 ipp_error_code = ErrorCodes.ERROR_JOB_CANCELLED )132 ipp_error_code = ErrorCodes.ERROR_JOB_CANCELLED 133 133 134 134 class MultipleJobsNotSupported(IPPServerException): 135 ipp_error_code = ErrorCodes.MULTIPLE_JOBS_NOT_SUPPORTED )135 ipp_error_code = ErrorCodes.MULTIPLE_JOBS_NOT_SUPPORTED 136 136 137 137 class PrinterIsDeactivated(IPPServerException): 138 ipp_error_code = ErrorCodes.PRINTER_IS_DEACTIVATED )138 ipp_error_code = ErrorCodes.PRINTER_IS_DEACTIVATED
Note: See TracChangeset
for help on using the changeset viewer.