<?php

namespace DoSomething\Gateway\Exceptions;

use Exception;

class ApiException extends Exception
{
    /**
     * Make a new generic API exception.
     *
     * @param string $endpoint
     * @param int $code
     * @param string $message
     */
    public function __construct($endpoint, $code, $message)
    {
        parent::__construct('Exception in Northstar "'.$endpoint.'" endpoint: ['.$code.'] '.$message);
    }
}

<?php

namespace DoSomething\Gateway\Exceptions;

use Exception;

class ApiException extends Exception
{
    /**
     * Make a new generic API exception.
     *
     * @param string $endpoint
     * @param int $code
     * @param string $message
     */
    public function __construct($endpoint, $code, $message)
    {
        parent::__construct('Exception from "'.$endpoint.'": ['.$code.'] '.$message, $code);
    }
}

Update exception message to be less confusing.
Update exception message to be less confusing.
