| 1 |
<?php |
| 2 |
namespace Elementor\Data\V2\Base\Exceptions; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; // Exit if accessed directly. |
| 6 |
} |
| 7 |
|
| 8 |
class Error_500 extends Data_Exception { |
| 9 |
|
| 10 |
protected function get_http_error_code() { |
| 11 |
return 500; |
| 12 |
} |
| 13 |
|
| 14 |
public function get_code() { |
| 15 |
return 'internal-server-error'; |
| 16 |
} |
| 17 |
|
| 18 |
public function get_message() { |
| 19 |
return 'Something went wrong'; |
| 20 |
} |
| 21 |
} |
| 22 |
|