blob: 3b2db2f56322ea0509a865e8f81db6810ad5e7e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
namespace SMW\Elastic\Exception;
use RuntimeException;
use SMW\Utils\ErrorCodeFormatter;
/**
* @license GNU GPL v2+
* @since 3.0
*
* @author mwjames
*/
class InvalidJSONException extends RuntimeException {
/**
* @since 3.0
*/
public function __construct( $error, $content = '' ) {
parent::__construct( ErrorCodeFormatter::getMessageFromJsonErrorCode( $error ) . " caused by: $content" );
}
}
|