<?php

namespace Planaday\Utility\Endpoints;

use Attribute;
use Exception;

#[Attribute( Attribute::TARGET_METHOD|Attribute::IS_REPEATABLE )]
class ApiExceptionMapping {

	/**
	 * @param class-string<Exception>|null $exceptionClass
	 * @param int $httpCode
	 * @param string|null $message
	 */
	public function __construct(
		public ?string $exceptionClass,
		public int $httpCode,
		public ?string $message = null
	) {}
}