Skip to content

Commit

Permalink
set exception on response
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 8, 2016
1 parent 032612b commit b6ad5c4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 2,7 @@

namespace Illuminate\Http;

use Exception;
use ArrayObject;
use JsonSerializable;
use Illuminate\Contracts\Support\Jsonable;
Expand Down Expand Up @@ -93,4 94,17 @@ public function getOriginalContent()
{
return $this->original;
}

/**
* Set the exception to attach to the response.
*
* @param \Exception $e
* @return $this
*/
public function withException(Exception $e)
{
$this->exception = $e;

return $this;
}
}

0 comments on commit b6ad5c4

Please sign in to comment.