Changeset aded2d1 for server/lib/gutenbach/ipp/errors.py
- Timestamp:
- Dec 23, 2011, 8:20:29 PM (12 years ago)
- Branches:
- no-cups
- Children:
- b828a96
- Parents:
- f6e2532
- git-author:
- Jessica B. Hamrick <jhamrick@…> (12/23/11 20:20:29)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (12/23/11 20:20:29)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach/ipp/errors.py
rf6c6897 raded2d1 2 2 3 3 class IPPException(Exception): 4 def __init__(self, message ):4 def __init__(self, message=""): 5 5 self.message = message 6 6 … … 24 24 ### Client error codes 25 25 26 class BadRequest(IPPClientException):26 class ClientErrorBadRequest(IPPClientException): 27 27 ipp_error_code = ErrorCodes.BAD_REQUEST 28 28 29 class Forbidden(IPPClientException):29 class ClientErrorForbidden(IPPClientException): 30 30 ipp_error_code = ErrorCodes.FORBIDDEN 31 31 32 class NotAuthenticated(IPPClientException):32 class ClientErrorNotAuthenticated(IPPClientException): 33 33 ipp_error_code = ErrorCodes.NOT_AUTHENTICATED 34 34 35 class NotAuthorized(IPPClientException):35 class ClientErrorNotAuthorized(IPPClientException): 36 36 ipp_error_code = ErrorCodes.NOT_AUTHORIZED 37 37 38 class NotPossible(IPPClientException):38 class ClientErrorNotPossible(IPPClientException): 39 39 ipp_error_code = ErrorCodes.NOT_POSSIBLE 40 40 41 class Timeout(IPPClientException):41 class ClientErrorTimeout(IPPClientException): 42 42 ipp_error_code = ErrorCodes.TIMEOUT 43 43 44 class NotFound(IPPClientException):44 class ClientErrorNotFound(IPPClientException): 45 45 ipp_error_code = ErrorCodes.NOT_FOUND 46 46 47 class Gone(IPPClientException):47 class ClientErrorGone(IPPClientException): 48 48 ipp_error_code = ErrorCodes.GONE 49 49 50 class RequestEntity(IPPClientException):50 class ClientErrorRequestEntity(IPPClientException): 51 51 ipp_error_code = ErrorCodes.REQUEST_ENTITY 52 52 53 class RequestValue(IPPClientException):53 class ClientErrorRequestValue(IPPClientException): 54 54 ipp_error_code = ErrorCodes.REQUEST_VALUE 55 55 56 class DocumentFormatNotSupported(IPPClientException):56 class ClientErrorDocumentFormatNotSupported(IPPClientException): 57 57 ipp_error_code = ErrorCodes.DOCUMENT_FORMAT 58 58 59 class Attributes(IPPClientException):59 class ClientErrorAttributes(IPPClientException): 60 60 ipp_error_code = ErrorCodes.ATTRIBUTES 61 61 … … 67 67 pass 68 68 69 class UriSchemeNotSupported(IPPClientException):69 class ClientErrorUriSchemeNotSupported(IPPClientException): 70 70 ipp_error_code = ErrorCodes.URI_SCHEME 71 71 72 class C harsetNotSupported(IPPClientException):72 class ClientErrorCharsetNotSupported(IPPClientException): 73 73 ipp_error_code = ErrorCodes.CHARSET 74 74 75 class C onflict(IPPClientException):75 class ClientErrorConflict(IPPClientException): 76 76 ipp_error_code = ErrorCodes.CONFLICT 77 77 78 class C ompressionNotSupported(IPPClientException):78 class ClientErrorCompressionNotSupported(IPPClientException): 79 79 ipp_error_code = ErrorCodes.COMPRESSION_NOT_SUPPORTED 80 80 81 class C ompressionError(IPPClientException):81 class ClientErrorCompressionError(IPPClientException): 82 82 ipp_error_code = ErrorCodes.COMPRESSION_ERROR 83 83 84 class DocumentFormatError(IPPClientException):84 class ClientErrorDocumentFormatError(IPPClientException): 85 85 ipp_error_code = ErrorCodes.DOCUMENT_FORMAT_ERROR 86 86 87 class DocumentAccessError(IPPClientException):87 class ClientErrorDocumentAccessError(IPPClientException): 88 88 ipp_error_code = ErrorCodes.DOCUMENT_ACCESS_ERROR 89 89 90 class AttributesNotSettable(IPPClientException):90 class ClientErrorAttributesNotSettable(IPPClientException): 91 91 ipp_error_code = ErrorCodes.ATTRIBUTES_NOT_SETTABLE 92 92 93 class IgnoredAllSubscriptions(IPPClientException):93 class ClientErrorIgnoredAllSubscriptions(IPPClientException): 94 94 ipp_error_code = ErrorCodes.IGNORED_ALL_SUBSCRIPTIONS 95 95 96 class TooManySubscriptions(IPPClientException):96 class ClientErrorTooManySubscriptions(IPPClientException): 97 97 ipp_error_code = ErrorCodes.TOO_MANY_SUBSCRIPTIONS 98 98 99 class IgnoredAllNotifications(IPPClientException):99 class ClientErrorIgnoredAllNotifications(IPPClientException): 100 100 ipp_error_code = ErrorCodes.IGNORED_ALL_NOTIFICATIONS 101 101 102 class PrintSupportFileNotFound(IPPClientException):102 class ClientErrorPrintSupportFileNotFound(IPPClientException): 103 103 ipp_error_code = ErrorCodes.PRINT_SUPPORT_FILE_NOT_FOUND 104 104 105 105 ### Server error codes 106 106 107 class InternalError(IPPServerException):107 class ServerErrorInternalError(IPPServerException): 108 108 ipp_error_code = ErrorCodes.INTERNAL_ERROR 109 109 110 class OperationNotSupported(IPPServerException):110 class ServerErrorOperationNotSupported(IPPServerException): 111 111 ipp_error_code = ErrorCodes.OPERATION_NOT_SUPPORTED 112 112 113 class Serv iceUnavailable(IPPServerException):113 class ServerErrorServiceUnavailable(IPPServerException): 114 114 ipp_error_code = ErrorCodes.SERVICE_UNAVAILABLE 115 115 116 class VersionNotSupported(IPPServerException):116 class ServerErrorVersionNotSupported(IPPServerException): 117 117 ipp_error_code = ErrorCodes.VERSION_NOT_SUPPORTED 118 118 119 class DeviceError(IPPServerException):119 class ServerErrorDeviceError(IPPServerException): 120 120 ipp_error_code = ErrorCodes.DEVICE_ERROR 121 121 122 class TemporaryError(IPPServerException):122 class ServerErrorTemporaryError(IPPServerException): 123 123 ipp_error_code = ErrorCodes.TEMPORARY_ERROR 124 124 125 class NotAccepting(IPPServerException):125 class ServerErrorNotAccepting(IPPServerException): 126 126 ipp_error_code = ErrorCodes.NOT_ACCEPTING 127 127 128 class PrinterBusy(IPPServerException):128 class ServerErrorPrinterBusy(IPPServerException): 129 129 ipp_error_code = ErrorCodes.PRINTER_BUSY 130 130 131 class ErrorJobCancelled(IPPServerException):131 class ServerErrorErrorJobCancelled(IPPServerException): 132 132 ipp_error_code = ErrorCodes.ERROR_JOB_CANCELLED 133 133 134 class MultipleJobsNotSupported(IPPServerException):134 class ServerErrorMultipleJobsNotSupported(IPPServerException): 135 135 ipp_error_code = ErrorCodes.MULTIPLE_JOBS_NOT_SUPPORTED 136 136 137 class PrinterIsDeactivated(IPPServerException):137 class ServerErrorPrinterIsDeactivated(IPPServerException): 138 138 ipp_error_code = ErrorCodes.PRINTER_IS_DEACTIVATED
Note: See TracChangeset
for help on using the changeset viewer.