protected static function throwException(\stdClass $object, ClientException $exMessage)
    {
        $exception = static::createExceptionMessage($object);
        if (stripos($exception['error_type'], 'oauth') !== false) {
            throw new InstagramOAuthException(
                json_encode(['Type' => $exception['error_type'], 'Message' => $exception['error_message']]),
                $exception['error_code'],
                $exMessage
            );
        }
        throw new InstagramException(
            json_encode(['Type' => $exception['error_type'], 'Message' => $exception['error_message']]),
            $exception['error_code'],
            $exMessage
        );
    }