Field Manual Brokerage / Linux / Laravel
← Laravel

app/Exceptions/ExchangeException.php

Paste the complete file at this path. Names and paths are case-sensitive on Linux.

What it is

Complete brokerage practice file. The Assemble project page lists every file in order.

When to use it

Paste the complete file at this path. Names and paths are case-sensitive on Linux.

Syntax

mkdir -p 'app/Exceptions'
# Paste the Example below into app/Exceptions/ExchangeException.php

Example

<?php

declare(strict_types=1);

namespace App\Exceptions;

use RuntimeException;

class ExchangeException extends RuntimeException
{
    public function __construct(string $message, public readonly int $httpStatus)
    {
        parent::__construct($message);
    }
}

Common mistakes

Use the setup runbook first. Adapt provisional API assumptions to the supplied contract. Merge into supplied applications; do not duplicate the orders migration.

Related topics

API contract: change these points first