File: /var/www/admin.javaapp.co.uk/app/Exceptions/ResetPasswordAndPldPasswordShouldNotSame.php
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Http\JsonResponse;
use Throwable;
class ResetPasswordAndPldPasswordShouldNotSame extends Exception
{
}
// /**
// * @var
// */
// public $message;
// public $data;
// /**
// * GeneralException constructor.
// *
// * @param string $message
// * @param int $code
// * @param Throwable|null $previous
// * @param array|null $data
// */
// public function __construct(string $message = '', int $code = 0, Throwable $previous = null, ?array $data = [])
// {
// $this->data = $data;
// parent::__construct($message, $code, $previous);
// }
// public function getUserMessage()
// {
// return $this->message;
// }
// /**
// * Report the exception.
// */
// public function report(): JsonResponse
// {
// $response = [
// 'status' => $this->code,
// 'message' => $this->message,
// 'data'=>$this->data
// ];
// return response()->json($response);
// }
// /**
// * Render the exception into an HTTP response.
// *
// * @return JsonResponse
// */
// public function render(): JsonResponse
// {
// $response = [
// 'status' =>$this->code,
// 'message' => $this->message
// ];
// if($this->data){
// $response['data']=$this->data;
// }
// return response()->json($response);
// }