Exception.php 230 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 <?php namespace SendGrid; /** * An exception thrown when SendGrid does not return a 200 */ class Exception extends \Exception { public function getErrors() { return json_decode($this->message)->errors; } }