18 lines
392 B
PHP
18 lines
392 B
PHP
<?php
|
|
|
|
namespace App\Exceptions\AtencaoBasica;
|
|
|
|
use Exception;
|
|
use Illuminate\Http\Response;
|
|
|
|
class OutroMotivoException extends Exception
|
|
{
|
|
|
|
public function render()
|
|
{
|
|
return response()->json([
|
|
'message' => 'O motivo <strong>' . json_decode($this->getMessage()) .'</strong> é incompatível com o tipo de imóvel.'
|
|
], Response::HTTP_BAD_REQUEST);
|
|
}
|
|
}
|