model¶
model.bad_request¶
-
exception
lsserver.domain_model.model_exceptions.
BadRequest
(caused_by_error=None, **kwargs) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.domain_model.model_exceptions.ModelError
-
type
= 'model.bad_request'
-
localizable_message
= <LocalizableMessage key='server.bad_request' ...>
-
model.cost.default_cost¶
-
exception
lsserver.model.cost.
DefaultCostError
(message=None) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.cost.CostError
HTTP code: 400 Bad RequestLocalized Key: model.cost.default_costExample: Must have exactly 1 default cost.-
type
= 'model.cost.default_cost'
-
localizable_message
= <LocalizableMessage key='model.cost.default_cost' ...>
-
model.documents.cannot_use_merged_customer¶
-
exception
lsserver.model.base.
CannotUseMergedCustomer
(message=None, **kwargs) Bases:
lsserver.model.base.QuoteError
,lscore.errors.server_errors.BadRequest
HTTP code: 400 Bad RequestLocalized Key: model.documents.cannot_use_merged_customerExample: Cannot use a merged customer for this document.-
type
= u'model.documents.cannot_use_merged_customer'
-
localizable_message
= <LocalizableMessage key='model.documents.cannot_use_merged_customer' ...>
-
model.documents.duplicate_serial_number¶
-
exception
lsserver.model.documents.transactional_invoice.
DuplicateSerialNumber
(product_description, serial_number) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.documents.transactional_invoice.TransactionalInvoiceError
HTTP code: 400 Bad RequestLocalized Key: model.documents.duplicate_serial_numberExample: None: Product “None” creates a duplicate serial number (None) in invoice.-
type
= 'model.documents.duplicate_serial_number'
-
localizable_message
= <LocalizableMessage key='model.documents.duplicate_serial_number' ...>
-
model.documents.handoff.invoice_not_found¶
-
exception
lsserver.model.documents.handoff.
InvoiceNotFound
(id) Bases:
lscore.errors.server_errors.NotFound
,lsserver.model.documents.handoff.HandOffError
HTTP code: 404 Not FoundLocalized Key: resource.not_foundExample: The None resource with id None was not found. Please contact support.-
type
= 'model.documents.handoff.invoice_not_found'
-
localizable_message
= <LocalizableMessage key='resource.not_found' ...>
-
model.documents.invalid_serial_number¶
-
exception
lsserver.model.documents.po.
InvalidSerialNumber
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.documents.po.POError
HTTP code: 400 Bad RequestLocalized Key: model.documents.invalid_serial_numberExample: Serial numbers provided is invalid-
type
= 'model.documents.invalid_serial_number'
-
localizable_message
= <LocalizableMessage key='model.documents.invalid_serial_number' ...>
-
-
exception
lsserver.model.serial_number.
InvalidSerialNumber
(lineitem_id, serial_number) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.serial_number.SerialNumberError
HTTP code: 400 Bad RequestLocalized Key: resource.cancel_resource.invalid_serialExample: ‘None:None’ has invalid serial number set None-
type
= u'model.documents.invalid_serial_number'
-
localizable_message
= <LocalizableMessage key='resource.cancel_resource.invalid_serial' ...>
-
-
exception
lsserver.model.documents.transactional_invoice.
InvalidSerialNumber
(product_id, serial_number) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.documents.transactional_invoice.TransactionalInvoiceError
HTTP code: 400 Bad RequestLocalized Key: resource.cancel_resource.invalid_serialExample: ‘None:None’ has invalid serial number set None-
type
= 'model.documents.invalid_serial_number'
-
localizable_message
= <LocalizableMessage key='resource.cancel_resource.invalid_serial' ...>
-
model.documents.lineitem_cannot_be_edited¶
-
exception
lsserver.model.base.
UnEditableLineItem
(message=None, **kwargs) Bases:
lsserver.model.base.QuoteError
,lscore.errors.server_errors.NotAcceptable
HTTP code: 406 Not AcceptableLocalized Key: model.documents.lineitem_cannot_be_editedExample: This lineitem cannot be edited at this time.-
type
= u'model.documents.lineitem_cannot_be_edited'
-
localizable_message
= <LocalizableMessage key='model.documents.lineitem_cannot_be_edited' ...>
-
model.documents.lineitems_still_attached¶
-
exception
lsserver.model.documents.po.
LineItemsStillAttached
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.documents.po.POError
HTTP code: 400 Bad RequestLocalized Key: model.invoice.lineitems_still_attachedExample: Cannot void invoice with line items still attached.-
type
= 'model.documents.lineitems_still_attached'
-
localizable_message
= <LocalizableMessage key='model.invoice.lineitems_still_attached' ...>
-
model.documents.missing_serial_number¶
-
exception
lsserver.model.base.
MissingSerialNumber
Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.base.QuoteError
HTTP code: 400 Bad RequestLocalized Key: resource.cancel_resource.missing_parameterExample: ‘None:None’ requires parameter ‘None’-
type
= u'model.documents.missing_serial_number'
-
localizable_message
= <LocalizableMessage key='resource.cancel_resource.missing_parameter' ...>
-
-
exception
lsserver.model.documents.transactional_invoice.
MissingSerialNumber
Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.documents.transactional_invoice.TransactionalInvoiceError
HTTP code: 400 Bad RequestLocalized Key: resource.cancel_resource.missing_parameterExample: ‘None:None’ requires parameter ‘None’-
type
= 'model.documents.missing_serial_number'
-
localizable_message
= <LocalizableMessage key='resource.cancel_resource.missing_parameter' ...>
-
model.documents.serial_numbers_not_provided¶
-
exception
lsserver.model.documents.po.
SerialNumbersNotProvided
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.documents.po.POError
HTTP code: 400 Bad RequestLocalized Key: model.documents.serial_numbers_not_providedExample: No serial numbers were provided.-
type
= 'model.documents.serial_numbers_not_provided'
-
localizable_message
= <LocalizableMessage key='model.documents.serial_numbers_not_provided' ...>
-
model.documents.unknown_transaction¶
-
exception
lsserver.model.documents.transactional_invoice.
UnknownTransactionError
(id, caused_by_error=None) Bases:
lscore.errors.server_errors.NotFound
,lsserver.model.documents.transactional_invoice.TransactionalInvoiceError
HTTP code: 404 Not FoundLocalized Key: resource.not_foundExample: The None resource with id None was not found. Please contact support.-
type
= 'model.documents.unknown_transaction'
-
localizable_message
= <LocalizableMessage key='resource.not_found' ...>
-
model.documents.unknown_transaction_lineitem¶
-
exception
lsserver.model.documents.transactional_invoice.
UnknownLineItemError
(id, caused_by_error=None) Bases:
lscore.errors.server_errors.NotFound
,lsserver.model.documents.transactional_invoice.TransactionalInvoiceError
HTTP code: 404 Not FoundLocalized Key: resource.not_foundExample: The None resource with id None was not found. Please contact support.-
type
= 'model.documents.unknown_transaction_lineitem'
-
localizable_message
= <LocalizableMessage key='resource.not_found' ...>
-
model.gift_cards.duplicate_serial_number¶
-
exception
lsserver.model.gift_card.
DuplicateSerialNumberError
(serial_number=u'Unknown') Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.model.gift_card.GiftCardError
-
type
= 'model.gift_cards.duplicate_serial_number'
-
localizble_message
= <LocalizableMessage key='model.gift_cards.duplicate_serial_number' ...>
-
model.gift_cards.missing_serial_number¶
-
exception
lsserver.model.gift_card.
MissingSerialNumberError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.gift_card.GiftCardError
HTTP code: 400 Bad RequestLocalized Key: model.gift_cards.missing_serial_numberExample: Required serial number missing.-
type
= 'model.gift_cards.missing_serial_number'
-
localizable_message
= <LocalizableMessage key='model.gift_cards.missing_serial_number' ...>
-
model.gift_cards.serial_number_not_editable¶
-
exception
lsserver.model.gift_card.
SerialNumberNotEditableError
(new_serial, old_serial) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.gift_card.GiftCardError
-
type
= 'model.gift_cards.serial_number_not_editable'
-
localizble_message
= <LocalizableMessage key='model.gift_cards.serial_number_not_editable' ...>
-
model.gift_cards.server_generated_serial_numbers¶
-
exception
lsserver.model.gift_card.
GeneratedSerialNumberError
(serial_number=u'Unknown') Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.gift_card.GiftCardError
HTTP code: 400 Bad RequestLocalized Key: model.gift_cards.server_generated_serial_numbersExample: Gift card serials are generated by the server. Cannot be set manually-
type
= 'model.gift_cards.server_generated_serial_numbers'
-
localizable_message
= <LocalizableMessage key='model.gift_cards.server_generated_serial_numbers' ...>
-
model.gift_cards.source_id_and_invoice_id_specified_error¶
-
exception
lsserver.model.gift_card.
GiftCardsSourceIdAndInvoiceIdSpecifiedError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.model.gift_card.GiftCardError
-
type
= 'model.gift_cards.source_id_and_invoice_id_specified_error'
-
localizble_message
= <LocalizableMessage key='model.gift_cards.source_id_and_invoice_id_specified_error' ...>
-
model.invalid_data¶
-
exception
lsserver.domain_model.model_exceptions.
InvalidData
(message=None, caused_by_error=None) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.domain_model.model_exceptions.ModelError
-
type
= 'model.invalid_data'
-
localizable_message
= <LocalizableMessage key='server.not_acceptable' ...>
-
-
exception
lsserver.model.discount.
DiscountError
(message=None, caused_by_error=None) Bases:
lsserver.domain_model.model_exceptions.InvalidData
,decimal.InvalidOperation
model.invoice.delete_gift_card_payment¶
-
exception
lsserver.model.invoice.
DeleteGiftCardPayment
(message=None, **kwargs) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.model.invoice.InvoiceError
HTTP code: 406 Not AcceptableLocalized Key: model.invoice.delete_gift_card_paymentExample: Cannot remove a gift card payment.-
type
= 'model.invoice.delete_gift_card_payment'
-
localizable_message
= <LocalizableMessage key='model.invoice.delete_gift_card_payment' ...>
-
model.invoice.invoice_has_activated_gift_cards¶
-
exception
lsserver.model.invoice.
InvoiceHasActivatedGiftCards
(message=None, **kwargs) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.model.invoice.InvoiceError
HTTP code: 406 Not AcceptableLocalized Key: model.invoice.invoice_has_activated_gift_cardsExample: This invoice already has activated gift cards.-
type
= 'model.invoice.invoice_has_activated_gift_cards'
-
localizable_message
= <LocalizableMessage key='model.invoice.invoice_has_activated_gift_cards' ...>
-
model.invoice.invoice_has_payments¶
-
exception
lsserver.model.invoice.
InvoiceHasPayments
(num_payments, **kwargs) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.model.invoice.InvoiceError
HTTP code: 406 Not AcceptableLocalized Key: model.invoice.invoice_has_paymentsExample: This invoice already has [None] payments.-
type
= 'model.invoice.invoice_has_payments'
-
localizable_message
= <LocalizableMessage key='model.invoice.invoice_has_payments' ...>
-
model.invoice.lineitems_still_attached¶
-
exception
lsserver.model.invoice.
LineItemsStillAttached
(message=None, **kwargs) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.invoice.InvoiceError
HTTP code: 400 Bad RequestLocalized Key: model.invoice.lineitems_still_attachedExample: Cannot void invoice with line items still attached.-
type
= 'model.invoice.lineitems_still_attached'
-
localizable_message
= <LocalizableMessage key='model.invoice.lineitems_still_attached' ...>
-
model.invoice.return_in_stock_serial_error¶
-
exception
lsserver.model.invoice.
ReturnInStockSerialError
(product_code, serial_number) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.invoice.InvoiceError
HTTP code: 400 Bad RequestLocalized Key: model.invoice.return_in_stock_serial_errorExample: Product [None] with serial [None] is in stock and cannot be returned.-
type
= 'model.invoice.return_in_stock_serial_error'
-
localizable_message
= <LocalizableMessage key='model.invoice.return_in_stock_serial_error' ...>
-
model.invoice.voided_invoice¶
-
exception
lsserver.model.invoice.
VoidedInvoice
(not_allowed_items) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.invoice.InvoiceError
HTTP code: 400 Bad RequestLocalized Key: model.invoice.voided_invoiceExample: Cannot update these items: None on a voided invoice-
type
= 'model.invoice.voided_invoice'
-
localizable_message
= <LocalizableMessage key='model.invoice.voided_invoice' ...>
-
model.model_hook_exception¶
-
exception
lsserver.domain_model.model_exceptions.
ModelHookException
(message=None) Bases:
lscore.errors.server_errors.ServerError
,lsserver.domain_model.model_exceptions.ModelError
HTTP code: 500 Internal Server ErrorLocalized Key: model.model_hook_exceptionExample: Model hook exception: None-
type
= 'model.model_hook_exception'
-
localizable_message
= <LocalizableMessage key='model.model_hook_exception' ...>
-
model.payments.credit_cards.customer_payment_gateway_token_mismatch¶
-
exception
lsserver.payment_gateway.credit_cards.
CustomerPaymentGatewayTokenMismatch
Bases:
lscore.errors.server_errors.BadRequest
,lsserver.payment_gateway.credit_cards.CreditCardError
HTTP code: 400 Bad RequestExample: The request token does not belong to the assigned customer.-
type
= 'model.payments.credit_cards.customer_payment_gateway_token_mismatch'
-
localizable_message
= <LocalizableMessage key='model.payments.credit_cards.customer_payment_gateway_token_mismatch' ...>
-
model.payments.credit_cards.payment_gateway_token_requires_customer¶
-
exception
lsserver.payment_gateway.credit_cards.
PaymentGatewayTokenRequiresCustomer
Bases:
lscore.errors.server_errors.BadRequest
,lsserver.payment_gateway.credit_cards.CreditCardError
HTTP code: 400 Bad RequestExample: A customer must assigned when generating customer payment gateway tokens.-
type
= 'model.payments.credit_cards.payment_gateway_token_requires_customer'
-
localizable_message
= <LocalizableMessage key='model.payments.credit_cards.payment_gateway_token_requires_customer' ...>
-
model.payments.credit_cards.payment_too_small¶
-
exception
lsserver.payment_gateway.credit_cards.
PaymentTooSmall
(request_type) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.payment_gateway.credit_cards.CreditCardError
HTTP code: 400 Bad RequestLocalized Key: model.payments.credit_cards.payment_too_smallExample: A None is requested but the amount is less that 0.01-
type
= 'model.payments.credit_cards.payment_too_small'
-
localizable_message
= <LocalizableMessage key='model.payments.credit_cards.payment_too_small' ...>
-
model.payments.gift_cards.amount_positive_error¶
-
exception
lsserver.payment_gateway.gift_cards.
GiftCardAmountPositiveError
Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.gift_cards.GiftCardError
HTTP code: 403 ForbiddenLocalized Key: model.payments.gift_cards.amount_positive_errorExample: Amount for gift card sale must be positive.-
type
= 'model.payments.gift_cards.amount_positive_error'
-
localizable_message
= <LocalizableMessage key='model.payments.gift_cards.amount_positive_error' ...>
-
model.payments.gift_cards.insufficient_funds_error¶
-
exception
lsserver.payment_gateway.gift_cards.
GiftCardInsufficientFundsError
(total, amount) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.gift_cards.GiftCardError
HTTP code: 403 ForbiddenLocalized Key: model.payments.gift_cards.insufficient_funds_errorExample: Insufficient funds remain on gift card (None vs None)-
type
= 'model.payments.gift_cards.insufficient_funds_error'
-
localizable_message
= <LocalizableMessage key='model.payments.gift_cards.insufficient_funds_error' ...>
-
model.payments.gift_cards.no_serial_number_error¶
-
exception
lsserver.payment_gateway.gift_cards.
GiftCardNoSerialNumberError
Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.gift_cards.GiftCardError
HTTP code: 403 ForbiddenLocalized Key: model.payments.gift_cards.no_serial_number_errorExample: No gift card serial number passed in.-
type
= 'model.payments.gift_cards.no_serial_number_error'
-
localizable_message
= <LocalizableMessage key='model.payments.gift_cards.no_serial_number_error' ...>
-
model.payments.gift_cards.product_not_found_error¶
-
exception
lsserver.payment_gateway.gift_cards.
GiftCardProductNotFoundError
(product_code) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.gift_cards.GiftCardError
HTTP code: 403 ForbiddenLocalized Key: model.payments.gift_cards.product_not_found_errorExample: Could not find product with code ‘None’-
type
= 'model.payments.gift_cards.product_not_found_error'
-
localizable_message
= <LocalizableMessage key='model.payments.gift_cards.product_not_found_error' ...>
-
model.payments.gift_cards.product_required_error¶
-
exception
lsserver.payment_gateway.gift_cards.
GiftCardProductRequiredError
Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.gift_cards.GiftCardError
HTTP code: 403 ForbiddenLocalized Key: model.payments.gift_cards.product_required_errorExample: pre_processed Gift Card payments require a product-
type
= 'model.payments.gift_cards.product_required_error'
-
localizable_message
= <LocalizableMessage key='model.payments.gift_cards.product_required_error' ...>
-
model.payments.gift_cards.serial_number_does_not_exist_error¶
-
exception
lsserver.payment_gateway.gift_cards.
GiftCardSerialNumberDoesNotExistError
(serial_number) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.gift_cards.GiftCardError
HTTP code: 403 ForbiddenLocalized Key: model.payments.gift_cards.serial_number_does_not_exist_errorExample: Could not find gift card with serial ‘None’-
type
= 'model.payments.gift_cards.serial_number_does_not_exist_error'
-
localizable_message
= <LocalizableMessage key='model.payments.gift_cards.serial_number_does_not_exist_error' ...>
-
model.payments.store_credit.bad_base_payment_error¶
-
exception
lsserver.payment_gateway.store_credit.
StoreCreditBadBasePaymentError
Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.store_credit.StoreCreditError
HTTP code: 403 ForbiddenLocalized Key: model.payments.store_credit.bad_base_payment_errorExample: Store Credits can only be applied to invoices.-
type
= 'model.payments.store_credit.bad_base_payment_error'
-
localizable_message
= <LocalizableMessage key='model.payments.store_credit.bad_base_payment_error' ...>
-
model.payments.store_credit.invalid_type_error¶
-
exception
lsserver.payment_gateway.store_credit.
StoreCreditInvalidPaymentTypeError
(pay_type) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.store_credit.StoreCreditError
HTTP code: 403 ForbiddenLocalized Key: model.payments.store_credit.invalid_type_errorExample: Payment type cannot be None-
type
= 'model.payments.store_credit.invalid_type_error'
-
localizable_message
= <LocalizableMessage key='model.payments.store_credit.invalid_type_error' ...>
-
model.payments.store_credit.negative_amount_error¶
-
exception
lsserver.payment_gateway.store_credit.
StoreCreditNegativeAmountError
(amt) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.store_credit.StoreCreditError
HTTP code: 403 ForbiddenLocalized Key: model.payments.store_credit.negative_amount_errorExample: Cannot use a negative amount (None)-
type
= 'model.payments.store_credit.negative_amount_error'
-
localizable_message
= <LocalizableMessage key='model.payments.store_credit.negative_amount_error' ...>
-
model.payments.store_credit.not_enough_credit_error¶
-
exception
lsserver.payment_gateway.store_credit.
StoreCreditNotEnoughCreditError
(amount, credit) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.store_credit.StoreCreditError
HTTP code: 403 ForbiddenLocalized Key: model.payments.store_credit.not_enough_credit_errorExample: Not enough credit. Purchase amount: None; available credit: None.-
type
= 'model.payments.store_credit.not_enough_credit_error'
-
localizable_message
= <LocalizableMessage key='model.payments.store_credit.not_enough_credit_error' ...>
-
model.payments.store_credit.source_loading_error¶
-
exception
lsserver.payment_gateway.store_credit.
StoreCreditSourceLoadingError
(type, id) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.store_credit.StoreCreditError
HTTP code: 403 ForbiddenLocalized Key: model.payments.store_credit.source_loading_errorExample: Unable to load credited document. document: None; id: None-
type
= 'model.payments.store_credit.source_loading_error'
-
localizable_message
= <LocalizableMessage key='model.payments.store_credit.source_loading_error' ...>
-
model.payments.store_credit.unsaved_invoice_error¶
-
exception
lsserver.payment_gateway.store_credit.
StoreCreditUnsavedInvoiceError
Bases:
lscore.errors.server_errors.Forbidden
,lsserver.payment_gateway.store_credit.StoreCreditError
HTTP code: 403 ForbiddenLocalized Key: model.payments.store_credit.unsaved_invoice_errorExample: Cannot add a payment to an invoice which has not been saved.-
type
= 'model.payments.store_credit.unsaved_invoice_error'
-
localizable_message
= <LocalizableMessage key='model.payments.store_credit.unsaved_invoice_error' ...>
-
model.po.already_cancelled¶
-
exception
lsserver.model.documents.po.
AlreadyCancelled
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.documents.po.POError
HTTP code: 400 Bad RequestLocalized Key: model.po.already_cancelledExample: The purchase order is already cancelled.-
type
= 'model.po.already_cancelled'
-
localizable_message
= <LocalizableMessage key='model.po.already_cancelled' ...>
-
model.po.invalid_quantity¶
-
exception
lsserver.model.documents.po.
InvalidQuantity
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.documents.po.POError
HTTP code: 400 Bad RequestLocalized Key: model.po.invalid_quantityExample: Quantity given is invalid.-
type
= 'model.po.invalid_quantity'
-
localizable_message
= <LocalizableMessage key='model.po.invalid_quantity' ...>
-
model.po.inventory_fully_or_partially_received¶
-
exception
lsserver.model.documents.po.
InventoryFullyOrPartiallyReceived
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.documents.po.POError
HTTP code: 400 Bad RequestLocalized Key: model.po.inventory_fully_or_partially_receivedExample: Some or all inventories have been received.-
type
= 'model.po.inventory_fully_or_partially_received'
-
localizable_message
= <LocalizableMessage key='model.po.inventory_fully_or_partially_received' ...>
-
model.po.no_cost_available_for_supplier¶
-
exception
lsserver.model.documents.po.
NoCostAvailableForSupplier
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.documents.po.POError
HTTP code: 400 Bad RequestLocalized Key: model.po.no_cost_available_for_supplierExample: The product does not have any cost with the PO supplier.-
type
= 'model.po.no_cost_available_for_supplier'
-
localizable_message
= <LocalizableMessage key='model.po.no_cost_available_for_supplier' ...>
-
model.po.product_not_ordered¶
-
exception
lsserver.model.documents.po.
ProductNotOrdered
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.documents.po.POError
HTTP code: 400 Bad RequestLocalized Key: model.po.product_not_orderedExample: The received product was not ordered on the PO.-
type
= 'model.po.product_not_ordered'
-
localizable_message
= <LocalizableMessage key='model.po.product_not_ordered' ...>
-
model.po.product_not_serialized¶
-
exception
lsserver.model.documents.po.
ProductNotSerialized
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.documents.po.POError
HTTP code: 400 Bad RequestLocalized Key: model.po.product_not_serializedExample: Receiving serial numbers for non serialized product.-
type
= 'model.po.product_not_serialized'
-
localizable_message
= <LocalizableMessage key='model.po.product_not_serialized' ...>
-
model.po.transfer_already_received¶
-
exception
lsserver.multistore.transfer.
TransferAlreadyReceivedError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.multistore.transfer.TransferError
HTTP code: 403 ForbiddenLocalized Key: model.po.transfer_already_receivedExample: The requested transfer has already been received.-
type
= u'model.po.transfer_already_received'
-
localizable_message
= <LocalizableMessage key='model.po.transfer_already_received' ...>
-
model.po.transfer_multi_store_not_found¶
-
exception
lsserver.multistore.transfer.
TransferMultiStoreNotFoundError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.ServerError
,lsserver.multistore.transfer.TransferError
HTTP code: 500 Internal Server ErrorLocalized Key: model.po.transfer_multi_store_not_foundExample: The multi-store is not found.-
type
= u'model.po.transfer_multi_store_not_found'
-
localizable_message
= <LocalizableMessage key='model.po.transfer_multi_store_not_found' ...>
-
model.pos_settings.logo_already_exists_error¶
-
exception
lsserver.model.pos_settings.
POSLogoAlreadyExistsError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.ServerError
,lsserver.model.pos_settings.POSLogoError
HTTP code: 500 Internal Server ErrorLocalized Key: model.pos_settings.logo_already_exists_errorExample: POS Logo already exists, change logo by updating.-
type
= 'model.pos_settings.logo_already_exists_error'
-
localizable_message
= <LocalizableMessage key='model.pos_settings.logo_already_exists_error' ...>
-
model.pos_settings.logo_does_not_exist_error¶
-
exception
lsserver.model.pos_settings.
POSLogoDoesNotExistError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.ServerError
,lsserver.model.pos_settings.POSLogoError
HTTP code: 500 Internal Server ErrorLocalized Key: model.pos_settings.logo_does_not_exist_errorExample: POS Logo does not exist, create logo first.-
type
= 'model.pos_settings.logo_does_not_exist_error'
-
localizable_message
= <LocalizableMessage key='model.pos_settings.logo_does_not_exist_error' ...>
-
model.product.already_master_product¶
-
exception
lsserver.model.product.
AlreadyMasterProductError
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.product.ProductError
HTTP code: 400 Bad RequestLocalized Key: model.product.already_master_productExample: Cannot set master product to a master product.-
type
= u'model.product.already_master_product'
-
localizable_message
= <LocalizableMessage key='model.product.already_master_product' ...>
-
model.product.missing_child_color_size¶
-
exception
lsserver.model.product.
MissingChildColorSizeError
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.product.ProductError
HTTP code: 400 Bad RequestLocalized Key: model.product.missing_child_color_sizeExample: A child product must have color and size attached.-
type
= u'model.product.missing_child_color_size'
-
localizable_message
= <LocalizableMessage key='model.product.missing_child_color_size' ...>
-
model.product.product_limit_exceeeded¶
-
exception
lsserver.model.product.
ProductLimitExceeded
Bases:
lsserver.domain_model.model_exceptions.BadRequest
HTTP code: 400 Bad RequestLocalized Key: model.product.product_limit_exceededExample: The number of products allowed in license has been exceeded-
type
= u'model.product.product_limit_exceeeded'
-
localizable_message
= <LocalizableMessage key='model.product.product_limit_exceeded' ...>
-
model.product.suffix_not_supported¶
-
exception
lsserver.model.product.
SuffixNotSupportedError
(caused_by_error=None, **kwargs) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.product.ProductError
HTTP code: 400 Bad RequestLocalized Key: model.product.suffix_not_supportedExample: Requested suffix is currently not supported.-
type
= u'model.product.suffix_not_supported'
-
localizable_message
= <LocalizableMessage key='model.product.suffix_not_supported' ...>
-
model.product.unmatched_serial_number_count¶
-
exception
lsserver.model.product.
UnmatchedSerialNumberCount
(expected_serial_qty, actual_serial_qty) Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.product.ProductError
HTTP code: 400 Bad RequestLocalized Key: model.product.unmatched_serial_number_countExample: Expected serial number count of None but received None-
type
= u'model.product.unmatched_serial_number_count'
-
localizable_message
= <LocalizableMessage key='model.product.unmatched_serial_number_count' ...>
-
model.quote.invalid_serial_number_count¶
-
exception
lsserver.model.base.
InvalidSerialNumberCount
(item_id=None, actual_serial_number_count=None, required_serial_number_count=None) Bases:
lscore.errors.server_errors.ServerError
,lsserver.model.base.QuoteError
Currently this is full ServerError. Really this should be an internal error that never actually happens because the client is smart enough not to do this.
HTTP code: 500 Internal Server ErrorLocalized Key: model.quote.invalid_serial_number_countExample: Line item None has None but requires None-
type
= u'model.quote.invalid_serial_number_count'
-
localizable_message
= <LocalizableMessage key='model.quote.invalid_serial_number_count' ...>
-
model.serial_number.cannot_sell_warehoused_serial_number¶
-
exception
lsserver.model.serial_number.
CannotSellWarehousedSerialNumber
(serial_number) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.serial_number.SerialNumberError
HTTP code: 403 ForbiddenLocalized Key: model.serial_number.cannot_sell_warehoused_serial_numberExample: Cannot sell a serial number number that is in the warehouse: {u’serial_number’: u’None’}-
type
= u'model.serial_number.cannot_sell_warehoused_serial_number'
-
localizable_message
= <LocalizableMessage key='model.serial_number.cannot_sell_warehoused_serial_number' ...>
-
model.serial_number.duplicate_serial_number¶
-
exception
lsserver.model.serial_number.
DuplicateSerialNumber
(serial_number) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.serial_number.SerialNumberError
HTTP code: 403 ForbiddenLocalized Key: model.documents.duplicate_serial_numberExample: None: Product “None” creates a duplicate serial number (None) in invoice.-
type
= u'model.serial_number.duplicate_serial_number'
-
localizable_message
= <LocalizableMessage key='model.documents.duplicate_serial_number' ...>
-
model.serial_number.incorrect_number_of_serials¶
-
exception
lsserver.model.serial_number.
IncorrectNumberOfSerials
(lineitem_id, number_of_serials, qtChange) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.serial_number.SerialNumberError
HTTP code: 400 Bad RequestLocalized Key: resource.cancel_resource.incorrect_number_of_serialsExample: ‘None:None’ has the wrong number of serials specified. Expected None, actual None-
type
= u'model.serial_number.incorrect_number_of_serials'
-
localizable_message
= <LocalizableMessage key='resource.cancel_resource.incorrect_number_of_serials' ...>
-
model.serial_number.missing_serial_number¶
-
exception
lsserver.model.serial_number.
MissingSerialNumber
(serial_number) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.serial_number.SerialNumberError
HTTP code: 400 Bad RequestLocalized Key: model.serial_number.missing_serial_numberExample: The required serial number {u’serial_number’: u’None’} cannot be found.-
type
= u'model.serial_number.missing_serial_number'
-
localizable_message
= <LocalizableMessage key='model.serial_number.missing_serial_number' ...>
-
model.serial_number.unknown_warehouse¶
-
exception
lsserver.model.serial_number.
UnknownWarehouse
(warehouse, serial_number) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.serial_number.SerialNumberError
HTTP code: 400 Bad RequestLocalized Key: model.serial_number.unknown_warehouseExample: Unknown warehouse [None] for serial number [None].-
type
= u'model.serial_number.unknown_warehouse'
-
localizable_message
= <LocalizableMessage key='model.serial_number.unknown_warehouse' ...>
-
model.store.communication_error¶
-
exception
lsserver.multistore.store.
CommunicationError
(msg) Bases:
lscore.errors.server_errors.ServerError
,lsserver.multistore.store.StoreError
HTTP code: 500 Internal Server ErrorLocalized Key: model.store.communication_errorExample: An unexpected multistore communication error occurred: None-
type
= 'model.store.communication_error'
-
localizable_message
= <LocalizableMessage key='model.store.communication_error' ...>
-
model.store.multi_store_activate_error¶
-
exception
lsserver.multistore.store.
MultiStoreActivateError
(reason, caused_by_error=None) Bases:
lscore.errors.server_errors.ServerError
,lsserver.multistore.store.StoreError
HTTP code: 500 Internal Server ErrorLocalized Key: model.store.multi_store_activate_errorExample: An error occured while attempting to activate the store. Reason [None]-
type
= 'model.store.multi_store_activate_error'
-
localizable_message
= <LocalizableMessage key='model.store.multi_store_activate_error' ...>
-
model.store.multi_store_disabled_error¶
-
exception
lsserver.multistore.store.
MultiStoreDisabledError
Bases:
lscore.errors.server_errors.Forbidden
,lsserver.multistore.store.StoreError
HTTP code: 403 ForbiddenLocalized Key: model.store.multi_store_disabled_errorExample: MultiStore functionality is disabled.-
type
= 'model.store.multi_store_disabled_error'
-
localizable_message
= <LocalizableMessage key='model.store.multi_store_disabled_error' ...>
-
model.store.multi_store_error¶
-
exception
lsserver.multistore.store.
MultiStoreError
(code, content, url, method) Bases:
lscore.errors.server_errors.ServerError
,lsserver.multistore.store.StoreError
HTTP code: <property object at 0x111e3e7e0>Localized Key: model.store.multi_store_errorExample: An unexpected multistore error occurred. None:None:None:None-
type
= 'model.store.multi_store_error'
-
localizable_message
= <LocalizableMessage key='model.store.multi_store_error' ...>
-
code
-
model.store.multi_store_invalid_credentials¶
-
exception
lsserver.multistore.store.
MultiStoreInvalidCredentials
(store_name, reason, caused_by_error=None) Bases:
lscore.errors.server_errors.ServerError
,lsserver.multistore.store.StoreError
HTTP code: 500 Internal Server ErrorLocalized Key: model.store.multi_store_invalid_credentialsExample: Invalid Crendentials to connect to multistore [None]. Reason: [None]-
type
= 'model.store.multi_store_invalid_credentials'
-
localizable_message
= <LocalizableMessage key='model.store.multi_store_invalid_credentials' ...>
-
model.store.multi_store_invalid_ip_address¶
-
exception
lsserver.multistore.store.
MultiStoreInvalidIPAddress
(ip, *args, **kwargs) Bases:
lscore.errors.server_errors.ServerError
,lsserver.multistore.store.StoreError
HTTP code: 500 Internal Server ErrorLocalized Key: model.store.multi_store_invalid_ip_addressExample: Invalid IP address [None] given.-
type
= 'model.store.multi_store_invalid_ip_address'
-
localizable_message
= <LocalizableMessage key='model.store.multi_store_invalid_ip_address' ...>
-
model.store.multi_store_unexpected_error¶
-
exception
lsserver.multistore.store.
MultiStoreUnexpectedError
(message, *args, **kwargs) Bases:
lscore.errors.server_errors.ServerError
,lsserver.multistore.store.StoreError
HTTP code: 500 Internal Server ErrorLocalized Key: model.store.multi_store_unexpected_errorExample: An unexpected error occured: [None]-
type
= 'model.store.multi_store_unexpected_error'
-
localizable_message
= <LocalizableMessage key='model.store.multi_store_unexpected_error' ...>
-
model.store.multi_store_unsupported_error¶
-
exception
lsserver.multistore.store.
MultiStoreUnsupportedError
(store_name) Bases:
lscore.errors.server_errors.ServerError
,lsserver.multistore.store.StoreError
HTTP code: 500 Internal Server ErrorLocalized Key: model.store.multi_store_unsupported_errorExample: Connecting to unsupported version of multistore [None].-
type
= 'model.store.multi_store_unsupported_error'
-
localizable_message
= <LocalizableMessage key='model.store.multi_store_unsupported_error' ...>
-
model.supplier.supplier_tied_to_cost¶
-
exception
lsserver.model.supplier.
SupplierTiedToCostError
(item_id) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.supplier.SupplierError
HTTP code: 403 ForbiddenLocalized Key: model.supplier.supplier_tied_to_costExample: Supplier with id: “None” cannot be deleted as it is tied to Product costs.-
type
= 'model.supplier.supplier_tied_to_cost'
-
localizable_message
= <LocalizableMessage key='model.supplier.supplier_tied_to_cost' ...>
-
model.till.duplicate_station_name¶
-
exception
lsserver.model.till.
DuplicateStationName
(message=None, **kwargs) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.till.TillException
HTTP code: 403 ForbiddenLocalized Key: model.till.duplicate_station_nameExample: The specified station (‘None’) has joined this till.-
type
= 'model.till.duplicate_station_name'
-
localizable_message
= <LocalizableMessage key='model.till.duplicate_station_name' ...>
-
model.till.invalid_stationname¶
-
exception
lsserver.model.till.
InvalidStationName
(stationname) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.model.till.TillException
HTTP code: 400 Bad RequestLocalized Key: model.till.invalid_stationnameExample: The specified station name (‘None’) is invalid-
type
= 'model.till.invalid_stationname'
-
localizable_message
= <LocalizableMessage key='model.till.invalid_stationname' ...>
-
model.till.station_already_assigned¶
-
exception
lsserver.model.till.
StationAlreadyAssigned
(stationname) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.till.TillException
HTTP code: 403 ForbiddenLocalized Key: model.till.station_already_assignedExample: The specified station (‘None’) is already assigned to a till.-
type
= 'model.till.station_already_assigned'
-
localizable_message
= <LocalizableMessage key='model.till.station_already_assigned' ...>
-
model.till.station_not_assigned¶
-
exception
lsserver.model.till.
StationNotAssigned
(stationname) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.till.TillException
HTTP code: 403 ForbiddenLocalized Key: model.till.station_not_assignedExample: The specified station (‘None’) is not assigned to this till.-
type
= 'model.till.station_not_assigned'
-
localizable_message
= <LocalizableMessage key='model.till.station_not_assigned' ...>
-
model.timesheet.DifferentUserTimesheetException¶
-
exception
lsserver.model.timesheet.
DifferentUserTimesheetException
(message=None, caused_by_error=None) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.model.timesheet.TimesheetError
HTTP code: 406 Not AcceptableLocalized Key: model.timesheet.different_user_for_timesheet_errorExample: A timesheet cannot be altered by a user different than the one that created the timesheet.-
type
= 'model.timesheet.DifferentUserTimesheetException'
-
localizable_message
= <LocalizableMessage key='model.timesheet.different_user_for_timesheet_error' ...>
-
model.timesheet.SingleTimesheetTimeException¶
-
exception
lsserver.model.timesheet.
SingleTimesheetTimeException
(message=None, caused_by_error=None) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.model.timesheet.TimesheetError
HTTP code: 406 Not AcceptableLocalized Key: model.timesheet.single_timesheet_errorExample: A time sheet can only have a single timesheet time running at a time.-
type
= 'model.timesheet.SingleTimesheetTimeException'
-
localizable_message
= <LocalizableMessage key='model.timesheet.single_timesheet_error' ...>
-
model.user.cannot_set_pin_for_admin_error¶
-
exception
lsserver.user.user.
CannotSetPINForAdminError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.user.user.UserError
HTTP code: 400 Bad RequestLocalized Key: model.user.cannot_set_pin_for_admin_errorExample: An administrator cannot have a login pin set.-
type
= u'model.user.cannot_set_pin_for_admin_error'
-
localizable_message
= <LocalizableMessage key='model.user.cannot_set_pin_for_admin_error' ...>
-
model.user.delete_last_admin_error¶
-
exception
lsserver.user.user.
DeleteLastAdminError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.user.user.UserError
HTTP code: 403 ForbiddenLocalized Key: model.user.delete_last_admin_errorExample: Cannot delete the last admin account.-
type
= 'model.user.delete_last_admin_error'
-
localizable_message
= <LocalizableMessage key='model.user.delete_last_admin_error' ...>
-
model.user.disable_last_admin_error¶
-
exception
lsserver.user.user.
DisableLastAdminError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.user.user.UserError
HTTP code: 403 ForbiddenLocalized Key: model.user.disable_last_admin_errorExample: Cannot disable the last admin account.-
type
= 'model.user.disable_last_admin_error'
-
localizable_message
= <LocalizableMessage key='model.user.disable_last_admin_error' ...>
-
model.user.duplicate_user_name¶
-
exception
lsserver.user.user.
DuplicateUserName
(username) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.user.user.UserError
HTTP code: 403 ForbiddenLocalized Key: model.user.duplicate_user_nameExample: The username ‘N/A’ is already in use.-
type
= 'model.user.duplicate_user_name'
-
localizable_message
= <LocalizableMessage key='model.user.duplicate_user_name' ...>
-
model.user.invalid_password¶
-
exception
lsserver.user.user.
InvalidPassword
(message=None, **kwargs) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.user.user.UserError
HTTP code: 400 Bad RequestLocalized Key: model.invalid_passwordExample: The password value specified is invalid for resource: None-
type
= 'model.user.invalid_password'
-
localizable_message
= <LocalizableMessage key='model.invalid_password' ...>
-
model.user.invalid_pin_error¶
-
exception
lsserver.user.user.
InvalidPINError
Bases:
lscore.errors.server_errors.BadRequest
,lsserver.user.user.UserError
HTTP code: 400 Bad RequestLocalized Key: model.user.invalid_pin_errorExample: Invalid PIN, must be 4-8 characters in length and consist of only ASCII letters and numbers.-
type
= u'model.user.invalid_pin_error'
-
localizable_message
= <LocalizableMessage key='model.user.invalid_pin_error' ...>
-
model.user.invalid_pin_length_error¶
-
exception
lsserver.user.user_service.
InvalidPINLengthError
(pin_length) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.user.user_service.UserServiceError
HTTP code: 400 Bad RequestLocalized Key: model.user.invalid_pin_length_errorExample: Invalid PIN length (0); length must be between 4 and 8.-
type
= u'model.user.invalid_pin_length_error'
-
localizable_message
= <LocalizableMessage key='model.user.invalid_pin_length_error' ...>
-
model.user.old_password¶
-
exception
lsserver.user.user.
OldPasswordError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.user.user.UserError
HTTP code: 400 Bad RequestLocalized Key: model.user.old_passwordExample: The password is the same as one of the four previously used.-
type
= 'model.user.old_password'
-
localizable_message
= <LocalizableMessage key='model.user.old_password' ...>
-
model.user.password_requirement_failure¶
-
exception
lsserver.user.user.
PasswordRequirementFailure
Bases:
lscore.errors.server_errors.BadRequest
,lsserver.user.user.UserError
HTTP code: 400 Bad RequestLocalized Key: model.user.password_requirement_failureExample: The password is required to be at least 7 characters long and contain both numeric and alphabetic characters.-
type
= 'model.user.password_requirement_failure'
-
localizable_message
= <LocalizableMessage key='model.user.password_requirement_failure' ...>
-
model.user.preferences_file_not_owner¶
-
exception
lsserver.user.user.
PreferencesFileNotOwner
Bases:
lscore.errors.server_errors.Forbidden
,lsserver.user.user.UserError
HTTP code: 403 ForbiddenLocalized Key: model.user.preferences_file_not_ownerExample: User is not owner of preferences file-
type
= 'model.user.preferences_file_not_owner'
-
localizable_message
= <LocalizableMessage key='model.user.preferences_file_not_owner' ...>
-
model.user.product_not_found¶
-
exception
lsserver.user.user.
ProductNotFoundError
(product_code) Bases:
lscore.errors.server_errors.NotFound
,lsserver.user.user.UserError
HTTP code: 404 Not FoundLocalized Key: model.user.product_not_foundExample: Unable to locate product with product code None-
type
= 'model.user.product_not_found'
-
localizable_message
= <LocalizableMessage key='model.user.product_not_found' ...>
-
model.user.read_only_user¶
-
exception
lsserver.user.user.
ReadOnlyUserError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.user.user.UserError
-
type
= 'model.user.read_only_user'
-
localizable_message
= <LocalizableMessage key='model.user.read_only_user' ...>
-
model.user.reserved_user_name¶
-
exception
lsserver.user.user.
ReservedUserName
(username) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.user.user.UserError
HTTP code: 403 ForbiddenLocalized Key: model.user.reserved_user_nameExample: The username ‘N/A’ is reserved.-
type
= 'model.user.reserved_user_name'
-
localizable_message
= <LocalizableMessage key='model.user.reserved_user_name' ...>
-
model.user.update_last_admin_privilege_error¶
-
exception
lsserver.user.user.
UpdateLastAdminPrivilegeError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.user.user.UserError
HTTP code: 403 ForbiddenLocalized Key: model.user.update_last_admin_privilege_errorExample: Cannot change the last admin accounts privilege group.-
type
= 'model.user.update_last_admin_privilege_error'
-
localizable_message
= <LocalizableMessage key='model.user.update_last_admin_privilege_error' ...>
-
model.user.user_is_logged_in¶
-
exception
lsserver.user.user.
UserIsLoggedInError
(username) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.user.user.UserError
HTTP code: 403 ForbiddenLocalized Key: model.user.user_is_logged_inExample: ‘N/A’ is currently logged in and cannot be deleted-
type
= 'model.user.user_is_logged_in'
-
localizable_message
= <LocalizableMessage key='model.user.user_is_logged_in' ...>
-
model.user.user_is_still_attached_to_documents¶
-
exception
lsserver.user.user.
UserIsStillAttachedToDocuments
(attachment_type, attachement_key) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.user.user.UserError
HTTP code: 403 ForbiddenLocalized Key: model.user.user_is_still_attached_to_documentsExample: This user is still attached to documents and cannot be deleted-
type
= 'model.user.user_is_still_attached_to_documents'
-
localizable_message
= <LocalizableMessage key='model.user.user_is_still_attached_to_documents' ...>
-