mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 19:06:55 +00:00
6 lines
218 B
Plaintext
6 lines
218 B
Plaintext
|
{% macro error_class(name, msg, code, subcode=0) %}
|
||
|
class {{ name }}({{ base_class_name }}):
|
||
|
_default_code = {{ code }}
|
||
|
_default_subcode = {{ subcode }}
|
||
|
_default_msg = "{{ msg|capitalize }}"
|
||
|
{% endmacro -%}
|