diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-12-12 11:55:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 11:55:51 +0800 |
commit | 55a681dcad718517815b7241a083871d2c5033a1 (patch) | |
tree | 0ba0c1c3df1de481f896beac80c18a6a60397203 | |
parent | 1ddd4e2b062a087300bace27a4b9d7f3dce1ab7f (diff) | |
parent | d50e8abefb0631ff5892723d50611c63e76099c7 (diff) | |
download | dexon-solidity-55a681dcad718517815b7241a083871d2c5033a1.tar dexon-solidity-55a681dcad718517815b7241a083871d2c5033a1.tar.gz dexon-solidity-55a681dcad718517815b7241a083871d2c5033a1.tar.bz2 dexon-solidity-55a681dcad718517815b7241a083871d2c5033a1.tar.lz dexon-solidity-55a681dcad718517815b7241a083871d2c5033a1.tar.xz dexon-solidity-55a681dcad718517815b7241a083871d2c5033a1.tar.zst dexon-solidity-55a681dcad718517815b7241a083871d2c5033a1.zip |
Merge pull request #3068 from izgzhen/document-io-class
Document JSON I/O error classes
-rw-r--r-- | docs/using-the-compiler.rst | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/docs/using-the-compiler.rst b/docs/using-the-compiler.rst index c12750c8..f1f13b82 100644 --- a/docs/using-the-compiler.rst +++ b/docs/using-the-compiler.rst @@ -177,7 +177,8 @@ Output Description start: 0, end: 100 ], - // Mandatory: Error type, such as "TypeError", "InternalCompilerError", "Exception", etc + // Mandatory: Error type, such as "TypeError", "InternalCompilerError", "Exception", etc. + // See below for complete list of types. type: "TypeError", // Mandatory: Component where the error originated, such as "general", "ewasm", etc. component: "general", @@ -273,3 +274,21 @@ Output Description } } } + + +Error types +~~~~~~~~~~~ + +1. ``JSONError``: JSON input doesn't conform to the required format, e.g. input is not a JSON object, the language is not supported, etc. +2. ``IOError``: IO and import processing errors, such as unresolvable URL or hash mismatch in supplied sources. +3. ``ParserError``: Source code doesn't conform to the language rules. +4. ``DocstringParsingError``: The NatSpec tags in the comment block cannot be parsed. +5. ``SyntaxError``: Syntactical error, such as ``continue`` is used outside of a ``for`` loop. +6. ``DeclarationError``: Invalid, unresolvable or clashing identifier names. e.g. ``Identifier not found`` +7. ``TypeError``: Error within the type system, such as invalid type conversions, invalid assignments, etc. +8. ``UnimplementedFeatureError``: Feature is not supported by the compiler, but is expected to be supported in future versions. +9. ``InternalCompilerError``: Internal bug triggered in the compiler - this should be reported as an issue. +10. ``Exception``: Unknown failure during compilation - this should be reported as an issue. +11. ``CompilerError``: Invalid use of the compiler stack - this should be reported as an issue. +12. ``FatalError``: Fatal error not processed correctly - this should be reported as an issue. +13. ``Warning``: A warning, which didn't stop the compilation, but should be addressed if possible. |