Skip to content

Commit

Permalink
Minor fix: removed unnecessary constructors in Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AlRado committed May 12, 2021
1 parent f530e2d commit 4aaa728
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions MiniScript-cs/MiniscriptErrors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ public override string ToString() {
public class MiniscriptException: Exception {
public SourceLoc location;

public MiniscriptException() {
}

public MiniscriptException(string message) : base(message) {
}

Expand Down Expand Up @@ -111,8 +108,6 @@ public IndexException(string message, Exception inner) : base(message, inner) {
}

public class KeyException : RuntimeException {
private KeyException() {} // don't use this version

public KeyException(string key) : base("Key Not Found: '" + key + "' not found in map") {
}

Expand Down Expand Up @@ -154,8 +149,6 @@ public LimitExceededException(string message, Exception inner) : base(message, i
}

public class UndefinedIdentifierException : RuntimeException {
private UndefinedIdentifierException() {} // don't call this version!

public UndefinedIdentifierException(string ident) : base(
"Undefined Identifier: '" + ident + "' is unknown in this context") {
}
Expand Down

0 comments on commit 4aaa728

Please sign in to comment.