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