Overview

Namespaces

  • LoginRadiusSDK
    • Advance
    • Clients
    • CustomerRegistration
      • Account
      • Authentication
      • Social
    • Utility

Classes

  • LoginRadiusSDK\Advance\ConfigAPI
  • LoginRadiusSDK\Advance\WebHooksAPI
  • LoginRadiusSDK\Clients\DefaultHttpClient
  • LoginRadiusSDK\CustomerRegistration\Account\AccountAPI
  • LoginRadiusSDK\CustomerRegistration\Account\CustomObjectAPI
  • LoginRadiusSDK\CustomerRegistration\Account\CustomRegistrationDataAPI
  • LoginRadiusSDK\CustomerRegistration\Account\RoleAPI
  • LoginRadiusSDK\CustomerRegistration\Authentication\AuthCustomObjectAPI
  • LoginRadiusSDK\CustomerRegistration\Authentication\UserAPI
  • LoginRadiusSDK\CustomerRegistration\Social\AdvanceSocialLoginAPI
  • LoginRadiusSDK\CustomerRegistration\Social\SocialLoginAPI
  • LoginRadiusSDK\Utility\Functions

Interfaces

  • LoginRadiusSDK\Clients\IHttpClient

Exceptions

  • LoginRadiusSDK\LoginRadiusException
  • Overview
  • Namespace
  • Class
 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 
<?php

/**
 * @link : http://www.loginradius.com
 * @category : LoginRadiusSDK
 * @package : LoginRadiusException
 * @author : LoginRadius Team
 * @version : 5.0.1
 * @license : https://opensource.org/licenses/MIT
 */
namespace LoginRadiusSDK;

/**
 * Class For LoginRadius Exception
 * This is the Loginradius Exception class to handle exception when you access LoginRadius APIs.
 *
 */
class LoginRadiusException extends \Exception
{

    public $error_response;

    /**
     * Get error message and set error response.
     *
     * @param string $message
     * @param array $error_response
     */
    public function __construct($message, $error_response = false)
    {
        parent::__construct($message);
        $this->error_response = $error_response;
    }

    /**
     * Get error Response from API.
     *
     * @return array
     */
    public function getErrorResponse()
    {
        return $this->error_response;
    }
}
API documentation generated by ApiGen