resource¶
resource.already_exists¶
-
exception
lsserver.domain_model.model_exceptions.
AlreadyExistsError
(resource, id, caused_by_error=None) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.domain_model.model_exceptions.ModelError
HTTP code: 403 ForbiddenLocalized Key: resource.already_existsExample: The None resource with id None already exists.-
type
= 'resource.already_exists'
-
localizable_message
= <LocalizableMessage key='resource.already_exists' ...>
-
resource.currency.missing_default_currency¶
-
exception
lsserver.model.company.
MissingDefaultCurrency
Bases:
lscore.errors.server_errors.UnexpectedError
,exceptions.Exception
HTTP code: 500 Internal Server ErrorLocalized Key: resource.currency.missing_default_currencyExample: The default currency is missing.-
type
= 'resource.currency.missing_default_currency'
-
localizable_message
= <LocalizableMessage key='resource.currency.missing_default_currency' ...>
-
resource.customer.cannot_lock_merged_customers¶
-
exception
lsserver.model.customer.
CannotLockMergedCustomers
(message=None, **kwargs) Bases:
lsserver.model.customer.CustomerError
,lscore.errors.server_errors.ServerError
HTTP code: 500 Internal Server ErrorLocalized Key: resource.customer.cannot_lock_merged_customersExample: Could not acquire all merged customer locks.-
type
= u'resource.customer.cannot_lock_merged_customers'
-
localizable_message
= <LocalizableMessage key='resource.customer.cannot_lock_merged_customers' ...>
-
resource.customer.customer_already_merged¶
-
exception
lsserver.model.customer.
CustomerAlreadyMerged
(caused_by_error=None, **kwargs) Bases:
lsserver.model.customer.CustomerError
,lsserver.domain_model.model_exceptions.BadRequest
HTTP code: 400 Bad RequestLocalized Key: resource.customer.customer_already_mergedExample: The customer is already merged. Please use another customer.-
type
= u'resource.customer.customer_already_merged'
-
localizable_message
= <LocalizableMessage key='resource.customer.customer_already_merged' ...>
-
resource.customer.missing_phone_id¶
-
exception
lsserver.model.customer.
MissingPhoneID
(caused_by_error=None, **kwargs) Bases:
lsserver.model.customer.CustomerError
,lsserver.domain_model.model_exceptions.BadRequest
HTTP code: 400 Bad RequestLocalized Key: resource.customer.missing_phone_idExample: Phone id or list order must be provided.-
type
= u'resource.customer.missing_phone_id'
-
localizable_message
= <LocalizableMessage key='resource.customer.missing_phone_id' ...>
-
resource.disallowed¶
-
exception
lsserver.resources.resource_exceptions.
DisallowedError
(message) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.resources.resource_exceptions.ResourceError
HTTP code: 403 ForbiddenLocalized Key: resource.disallowedExample: This operation is not allowed: None-
type
= 'resource.disallowed'
-
localizable_message
= <LocalizableMessage key='resource.disallowed' ...>
-
resource.insufficient_privileges¶
-
exception
lsserver.resources.resource_exceptions.
InsufficientPrivilegesError
(privilege, message=None, authorization_required=None) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.resources.resource_exceptions.ResourceError
HTTP code: 403 ForbiddenLocalized Key: resource.insufficient_privilegesExample: You do not have the required privileges (None): None-
type
= 'resource.insufficient_privileges'
-
localizable_message
= <LocalizableMessage key='resource.insufficient_privileges' ...>
-
resource.invalid_xpath¶
-
exception
lsserver.resources.resource_exceptions.
InvalidXpath
(xpath='Unknown', caused_by_error=None) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.resources.resource_exceptions.ResourceError
HTTP code: 406 Not AcceptableLocalized Key: resource.invalid_xpathExample: The specified xpath statement ‘None’is invalid.-
type
= 'resource.invalid_xpath'
-
localizable_message
= <LocalizableMessage key='resource.invalid_xpath' ...>
-
resource.invoice.invoice_already_activate¶
-
exception
lsserver.model.documents.transactional_invoice.
InvoiceAlreadyActivated
(message=None, **kwargs) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.model.documents.transactional_invoice.TransactionalInvoiceError
HTTP code: 406 Not AcceptableLocalized Key: model.documents.invoice_already_activatedExample: This invoice has already been activated. You must re-open it first.-
type
= 'resource.invoice.invoice_already_activate'
-
localizable_message
= <LocalizableMessage key='model.documents.invoice_already_activated' ...>
-
resource.invoice.invoice_already_posted¶
-
exception
lsserver.model.invoice.
InvoiceAlreadyPostedError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.model.invoice.InvoiceError
HTTP code: 406 Not AcceptableLocalized Key: resource.invoice.invoice_already_postedExample: No modifications are allowed since the invoice has already been posted-
type
= 'resource.invoice.invoice_already_posted'
-
localizable_message
= <LocalizableMessage key='resource.invoice.invoice_already_posted' ...>
-
-
exception
lsserver.model.documents.transactional_invoice.
InvoiceAlreadyPostedError
(message=None, **kwargs) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.model.documents.transactional_invoice.TransactionalInvoiceError
HTTP code: 406 Not AcceptableLocalized Key: resource.invoice.invoice_already_postedExample: No modifications are allowed since the invoice has already been posted-
type
= 'resource.invoice.invoice_already_posted'
-
localizable_message
= <LocalizableMessage key='resource.invoice.invoice_already_posted' ...>
-
resource.invoice.pole_display_change_not_allowed¶
-
exception
lsserver.model.documents.transactional_invoice.
PoleDisplayChangeNotAllowed
(message=None, **kwargs) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.documents.transactional_invoice.TransactionalInvoiceError
HTTP code: 403 ForbiddenLocalized Key: resource.invoice.pole_display_change_not_allowedExample: Cannot change the pole display at this time.-
type
= 'resource.invoice.pole_display_change_not_allowed'
-
localizable_message
= <LocalizableMessage key='resource.invoice.pole_display_change_not_allowed' ...>
-
resource.invoice.pole_display_still_attached¶
-
exception
lsserver.model.documents.transactional_invoice.
PoleDisplayStillAttached
(message=None, **kwargs) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.documents.transactional_invoice.TransactionalInvoiceError
HTTP code: 403 ForbiddenLocalized Key: resource.invoice.pole_display_still_attachedExample: There is already a pole display attached to the invoice.-
type
= 'resource.invoice.pole_display_still_attached'
-
localizable_message
= <LocalizableMessage key='resource.invoice.pole_display_still_attached' ...>
-
resource.not_attached¶
-
exception
lsserver.domain_model.model_exceptions.
NotAttachedError
(parent_type, parent_id, item_type, item_id) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.domain_model.model_exceptions.ModelError
HTTP code: 400 Bad RequestLocalized Key: resource.not_attachedExample: None:None is not attached to None:None-
type
= 'resource.not_attached'
-
localizable_message
= <LocalizableMessage key='resource.not_attached' ...>
-
resource.not_found¶
-
exception
lsserver.domain_model.model_exceptions.
NotFoundError
(resource, id, caused_by_error=None) Bases:
lscore.errors.server_errors.NotFound
,lsserver.domain_model.model_exceptions.ModelError
HTTP code: 404 Not FoundLocalized Key: resource.not_foundExample: The None resource with id None was not found. Please contact support.-
type
= 'resource.not_found'
-
localizable_message
= <LocalizableMessage key='resource.not_found' ...>
-
-
exception
lsserver.dashboards.dashboard_base.
WidgetTemplateDoesNotExist
(widget_template_name) Bases:
lsserver.domain_model.model_exceptions.NotFoundError
,lsserver.dashboards.dashboard_base.DashboardError
Indicates that an unknown widget template was requested
HTTP code: 404 Not FoundLocalized Key: resource.not_foundExample: The None resource with id None was not found. Please contact support.
resource.not_locked¶
-
exception
lscore.locking.errors.
NotLockedError
(lock_name, item_id) Bases:
lscore.errors.server_errors.BadRequest
,lscore.locking.errors.BaseLockError
HTTP code: 400 Bad RequestLocalized Key: resource.not_lockedExample: Acquire a lock on None with id None first-
type
= 'resource.not_locked'
-
localizable_message
= <LocalizableMessage key='resource.not_locked' ...>
-
resource.not_valid¶
-
exception
lsserver.domain_model.model_exceptions.
NotValidError
(expected='Unknown', actual=None, resource='Unknown') Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.domain_model.model_exceptions.ModelError
HTTP code: 406 Not AcceptableLocalized Key: resource.not_validExample: The None resource/parameter expected None but received None-
type
= 'resource.not_valid'
-
localizable_message
= <LocalizableMessage key='resource.not_valid' ...>
-
resource.not_your_lock¶
-
exception
lscore.locking.errors.
NotYourLockError
(lock_name, item_id, current_lock_holder=None) Bases:
lscore.errors.server_errors.Forbidden
,lscore.locking.errors.BaseLockError
HTTP code: 403 ForbiddenLocalized Key: resource.not_your_lockExample: None is in use by None. You will not be able to make changes until None closes the document.-
type
= 'resource.not_your_lock'
-
localizable_message
= <LocalizableMessage key='resource.not_your_lock' ...>
-
resource.order.delete_order_line_with_reserved_inventory¶
-
exception
lsserver.model.order.
DeleteOrderLineWithReservedInventory
Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.order.OrderError
HTTP code: 403 ForbiddenLocalized Key: resource.order.delete_order_line_with_reserved_inventoryExample: Cannot delete order line with reserved inventory.-
type
= 'resource.order.delete_order_line_with_reserved_inventory'
-
localizable_message
= <LocalizableMessage key='resource.order.delete_order_line_with_reserved_inventory' ...>
-
resource.order.invalid_order_line_status¶
-
exception
lsserver.model.order.
InvalidOrderLineStatusUpdate
(current_status, new_status) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.order.OrderError
HTTP code: 403 ForbiddenLocalized Key: resource.order.invalid_order_line_statusExample: Cannot update order from [None] to [None]-
type
= 'resource.order.invalid_order_line_status'
-
localizable_message
= <LocalizableMessage key='resource.order.invalid_order_line_status' ...>
-
resource.order.invalid_quantity_reserved¶
-
exception
lsserver.model.order.
InvalidQuantityReserved
(message=None, **kwargs) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.order.OrderError
HTTP code: 403 ForbiddenLocalized Key: resource.order.invalid_quantity_reservedExample: The specified quantity to reserve is invalid.-
type
= 'resource.order.invalid_quantity_reserved'
-
localizable_message
= <LocalizableMessage key='resource.order.invalid_quantity_reserved' ...>
-
resource.order.invalid_warehouse¶
-
exception
lsserver.model.order.
InvalidWarehouse
(message=None, **kwargs) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.order.OrderError
HTTP code: 403 ForbiddenLocalized Key: resource.order.invalid_warehouseExample: The specified warehouses are invalid.-
type
= 'resource.order.invalid_warehouse'
-
localizable_message
= <LocalizableMessage key='resource.order.invalid_warehouse' ...>
-
resource.order.invoiced_or_cancelled_order¶
-
exception
lsserver.model.order.
InvoicedOrCancelledOrder
(message=None, **kwargs) Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.order.OrderError
HTTP code: 403 ForbiddenLocalized Key: resource.order.invoiced_or_cancelled_orderExample: Cannot update an order that was already invoiced or cancelled.-
type
= 'resource.order.invoiced_or_cancelled_order'
-
localizable_message
= <LocalizableMessage key='resource.order.invoiced_or_cancelled_order' ...>
-
resource.order.missing_customer_info¶
-
exception
lsserver.model.order.
MissingCustomerInfo
Bases:
lsserver.domain_model.model_exceptions.BadRequest
,lsserver.model.order.OrderError
HTTP code: 400 Bad RequestLocalized Key: resource.order.missing_customer_infoExample: Customer ID or Customer name not set.-
type
= 'resource.order.missing_customer_info'
-
localizable_message
= <LocalizableMessage key='resource.order.missing_customer_info' ...>
-
resource.order.stock_order_customer_info_applied¶
-
exception
lsserver.model.order.
StockOrderCustomerInfoApplied
Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.order.OrderError
HTTP code: 403 ForbiddenLocalized Key: resource.order.stock_order_customer_info_appliedExample: Customer information cannot be set on Stock Orders.-
type
= 'resource.order.stock_order_customer_info_applied'
-
localizable_message
= <LocalizableMessage key='resource.order.stock_order_customer_info_applied' ...>
-
resource.order.stock_order_reservation_error¶
-
exception
lsserver.model.order.
StockOrderReservationError
Bases:
lscore.errors.server_errors.Forbidden
,lsserver.model.order.OrderError
HTTP code: 403 ForbiddenLocalized Key: resource.order.stock_order_reservation_errorExample: Cannot reserve inventory for Stock Orders.-
type
= 'resource.order.stock_order_reservation_error'
-
localizable_message
= <LocalizableMessage key='resource.order.stock_order_reservation_error' ...>
-
resource.tax_code.missing_default_tax_code¶
-
exception
lsserver.model.company.
MissingDefaultTaxCode
Bases:
lscore.errors.server_errors.UnexpectedError
,exceptions.Exception
HTTP code: 500 Internal Server ErrorLocalized Key: resource.tax_code.missing_default_tax_codeExample: The default tax code is missing.-
type
= 'resource.tax_code.missing_default_tax_code'
-
localizable_message
= <LocalizableMessage key='resource.tax_code.missing_default_tax_code' ...>
-
resource.tax_status.missing_default_tax_status¶
-
exception
lsserver.setup.tax_status.
MissingDefaultTaxStatus
Bases:
lscore.errors.server_errors.UnexpectedError
,lsserver.setup.tax_status.TaxStatusError
HTTP code: 500 Internal Server ErrorLocalized Key: resource.tax_status.missing_default_tax_statusExample: The default tax status is missing.-
type
= u'resource.tax_status.missing_default_tax_status'
-
localizable_message
= <LocalizableMessage key='resource.tax_status.missing_default_tax_status' ...>
-
resource.validation_error¶
-
exception
lscore.rest.request_handling.
ValidationError
(error_message) Bases:
lscore.errors.server_errors.BadRequest
HTTP code: 400 Bad RequestLocalized Key: resource.validation_errorExample: Unable to validate xml: None-
type
= 'resource.validation_error'
-
localizable_message
= <LocalizableMessage key='resource.validation_error' ...>
-
-
exception
lsserver.domain_model.model_exceptions.
ValidationError
(error_message) Bases:
lscore.errors.server_errors.BadRequest
,lsserver.domain_model.model_exceptions.ModelError
HTTP code: 400 Bad RequestLocalized Key: resource.validation_errorExample: Unable to validate xml: None-
type
= 'resource.validation_error'
-
localizable_message
= <LocalizableMessage key='resource.validation_error' ...>
-
resource.validation_unexpected_data_error¶
-
exception
lscore.rest.request_handling.
ValidationUnexpectedDataError
(element, errors) Bases:
lscore.rest.request_handling.ValidationError
HTTP code: 400 Bad RequestLocalized Key: resource.validation_unexpected_data_errorExample: There was unexpected data with the <None> element which caused the validation to fail: None-
type
= 'resource.validation_unexpected_data_error'
-
localizable_message
= <LocalizableMessage key='resource.validation_unexpected_data_error' ...>
-
resource.wrong_model¶
-
exception
lsserver.resources.resource_exceptions.
WrongModelError
(requested_model, actual_model, actual_id) Bases:
lscore.errors.server_errors.NotAcceptable
,lsserver.resources.resource_exceptions.ResourceError
HTTP code: 406 Not AcceptableLocalized Key: resource.wrong_modelExample: Incorrect model: ‘None’ is not correct for ‘None:None’-
type
= 'resource.wrong_model'
-
localizable_message
= <LocalizableMessage key='resource.wrong_model' ...>
-