-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Обработка ошибок и вывод их в строку. Составлена БНФ. Покрыл всё тестами, исправил мелкие баги.
- Loading branch information
rincew1nd
committed
Nov 25, 2016
1 parent
a9e58d7
commit fb3c54f
Showing
10 changed files
with
627 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace CodeTranslator.Exceptions | ||
{ | ||
public class OredrException : Exception | ||
{ | ||
public OredrException() : base() { } | ||
public OredrException(string exception, int line, params object[] args) | ||
: base(string.Format(exception, line, args[0])) { } | ||
public OredrException(string exceptionMessage, Exception inner) : base(exceptionMessage, inner) { } | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace CodeTranslator.Exceptions | ||
{ | ||
public class SyntaxException : Exception | ||
{ | ||
public SyntaxException() : base() { } | ||
|
||
public SyntaxException(string exception, int line, params object[] args) | ||
: base(string.Format(exception, line, args[0])) { } | ||
|
||
public SyntaxException(string exceptionMessage, Exception inner) : base(exceptionMessage, inner) { } | ||
} | ||
} |
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.