Skip to content

Error Handling

Werk24 uses the TechreadMessage object for communication. The object has an exceptions attribute, that lists all the exceptions that are associated with the response. Keep in mind, that exceptions can occur separately on each page. So, if you send a 2-document that contains a drawing and an order form, you will receive the correct output for the drawing, but an exception for the order form.

If everything went well, this list will be empty. If you use the python models, you can also check the property is_successful.

The following Exception Types exist:

  • DRAWING_FILE_FORMAT_UNSUPPORTED
  • DRAWING_FILE_SIZE_TOO_LARGE
  • DRAWING_RESOLUTION_TOO_LOW
  • DRAWING_CONTENT_NOT_UNDERSTOOD
  • DRAWING_PAPER_SIZE_TOO_LARGE