-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEX-344 A documentation generator for DEX errors (#7)
MatcherErrorDoc is a generator for a error's documentation in Markdown format. Contains: * All error entities and classes; * Samples for each error and how to deconstruct it's code to object, entity and class; * Unit tests to check there is no two equal error's code for different error classes; Also see the [description](https://github.com/wavesplatform/dex/wiki/The-structure-of-errors) and [the list of errors](https://github.com/wavesplatform/dex/wiki/List-of-all-errors). MatcherError * Now it is an "sealed abstract" class (was just "sealed"); * Descendants now are outside of the companion object due to scala macros limitations; * Improved error messages; * Fixed an error code duplication; ErrorInterpolator: * Now it's a typesafe. Compiler won't generate an MatcherErrorMessage if there is no Writes and Show for a used argument; * Now it supports a multiline messages; * Moved to com.wavesplatform.dex.error.Implicits; * All instances for all type classes required for ErrorInterpolator are in the com.wavesplatform.dex.error.Implicits; New com.wavesplatform.dex.meta package with meta-programming utilities: * Sample is an utility class to generate a sample for any class; * DescendantSamples is an utility class to generate samples for all sealed trait/class descendants; README.md: * Added instructions to generate documentation; * Added new required VM option: "-Xss"; * Added VM parameters brief description; * Added a section about required VM options for SBT running through IntelliJ IDEA; * Fixed wrong config's section (waves.matcher vs waves.dex);
- Loading branch information
1 parent
98e4767
commit 205d243
Showing
23 changed files
with
771 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.