// This file is auto-generated by alef — DO NOT EDIT.
// To regenerate: alef generate
// To verify freshness: alef verify --exit-code
// Issues & docs: https://github.com/kreuzberg-dev/alef

#nullable enable

using System;

namespace {{ namespace }};

public class {{ class_name }} : Exception
{
    public int Code { get; }

    public {{ class_name }}(int code, string message) : base(message)
    {
        Code = code;
    }

    public {{ class_name }}(string message) : base(message)
    {
        Code = 0;
    }

    public {{ class_name }}(string message, Exception innerException) : base(message, innerException)
    {
        Code = 0;
    }
}
