for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Haridarshan\Instagram\Exceptions;
class InstagramException extends \Exception
{
/*
* Get Exception type
* @return string | nul;
*/
public function getType()
$message = json_decode($this->message);
return isset($message->Type) ? $message->Type : null;
}