<?php

defined('APP_BOOTSTRAPPED') or exit('No direct access.');

class GameApiException extends RuntimeException
{
    private $details;

    public function __construct($message, $code = 0, array $details = array(), Throwable $previous = null)
    {
        parent::__construct((string) $message, (int) $code, $previous);
        $this->details = $details;
    }

    public function getDetails()
    {
        return $this->details;
    }
}
