J. King
4 years ago
7 changed files with 66 additions and 51 deletions
@ -1,10 +0,0 @@ |
|||
<?php |
|||
/** @license MIT |
|||
* Copyright 2018 J. King et al. |
|||
* See LICENSE and AUTHORS files for details */ |
|||
|
|||
declare(strict_types=1); |
|||
namespace JKingWeb\Lax\Parser; |
|||
|
|||
class ExceptionSemantics extends Exception { |
|||
} |
@ -1,10 +0,0 @@ |
|||
<?php |
|||
/** @license MIT |
|||
* Copyright 2018 J. King et al. |
|||
* See LICENSE and AUTHORS files for details */ |
|||
|
|||
declare(strict_types=1); |
|||
namespace JKingWeb\Lax\Parser; |
|||
|
|||
class ExceptionSyntax extends Exception { |
|||
} |
@ -1,42 +1,48 @@ |
|||
[ |
|||
{ |
|||
"description": "Content-Type mismatch", |
|||
"type": "text/html", |
|||
"input": {"version": "https://jsonfeed.org/version/1"}, |
|||
"exception": "notJSONType" |
|||
}, |
|||
{ |
|||
"description": "Not valid JSON 1", |
|||
"input": "{", |
|||
"exception": ["Syntax", "notJSON"] |
|||
"exception": "notJSON" |
|||
}, |
|||
{ |
|||
"description": "Not valid JSON 2", |
|||
"input": "<rss><channel/></rss>", |
|||
"exception": ["Syntax", "notJSON"] |
|||
"exception": "notJSON" |
|||
}, |
|||
{ |
|||
"description": "Not a JSON feed 1", |
|||
"input": {}, |
|||
"exception": ["Semantics", "notAFeed"] |
|||
"input": "{}", |
|||
"exception": "notJSONFeed" |
|||
}, |
|||
{ |
|||
"description": "Not a JSON feed 2", |
|||
"input": {"version": "https://example.com/"}, |
|||
"exception": ["Semantics", "notAFeed"] |
|||
"exception": "notJSONFeed" |
|||
}, |
|||
{ |
|||
"description": "Unknown version 1", |
|||
"description": "Not a JSON feed 3", |
|||
"input": {"version": "https://jsonfeed.org/version/"}, |
|||
"exception": ["Semantics", "unknownVersion"] |
|||
"exception": "notJSONFeed" |
|||
}, |
|||
{ |
|||
"description": "Unknown version 2", |
|||
"description": "Unknown version 1", |
|||
"input": {"version": "https://jsonfeed.org/version/2"}, |
|||
"exception": ["Semantics", "unknownVersion"] |
|||
"exception": "unsupportedJSONFeedVersion" |
|||
}, |
|||
{ |
|||
"description": "Unknown version 3", |
|||
"description": "Unknown version 2", |
|||
"input": {"version": "https://jsonfeed.org/version/11"}, |
|||
"exception": ["Semantics", "unknownVersion"] |
|||
"exception": "unsupportedJSONFeedVersion" |
|||
}, |
|||
{ |
|||
"description": "Unknown version 4", |
|||
"input": {"version": "https://jsonfeed.org/version/1.1"}, |
|||
"exception": ["Semantics", "unknownVersion"] |
|||
"description": "Unknown version 3", |
|||
"input": {"version": "https://jsonfeed.org/version/0.1"}, |
|||
"exception": "unsupportedJSONFeedVersion" |
|||
} |
|||
] |
Loading…
Reference in new issue