forked from SkalskiP/make-sense
-
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.
initial version of improved user noification
- Loading branch information
Showing
5 changed files
with
63 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
export class YOLOAnnotationsLoadingError extends Error { | ||
constructor(message) { | ||
super(message); | ||
this.name = "YOLOAnnotationsLoadingError"; | ||
this.name = 'YOLOAnnotationsLoadingError'; | ||
} | ||
} | ||
|
||
export class YOLOLabelsReadingError extends YOLOAnnotationsLoadingError { | ||
constructor() { | ||
super("Unexpected error occurred during reading label names from labels.txt file"); | ||
this.name = "YOLOLabelsLoadingError"; | ||
super('Unexpected error occurred during reading label names from labels.txt file'); | ||
this.name = 'YOLOLabelsLoadingError'; | ||
} | ||
} | ||
|
||
export class NoLabelNamesFileProvidedError extends YOLOAnnotationsLoadingError { | ||
constructor() { | ||
super("For YOLO labels to be loaded correctly, labels.txt file is required"); | ||
this.name = "NoLabelNamesFileProvidedError"; | ||
super('For YOLO labels to be loaded correctly, labels.txt file is required'); | ||
this.name = 'NoLabelNamesFileProvidedError'; | ||
} | ||
} | ||
|
||
export class LabelNamesNotUniqueError extends YOLOAnnotationsLoadingError { | ||
constructor() { | ||
super("Label names listed in labels.txt file should be unique"); | ||
this.name = "LabelNamesNotUniqueError"; | ||
super('Label names listed in labels.txt file should be unique'); | ||
this.name = 'LabelNamesNotUniqueError'; | ||
} | ||
} | ||
|
||
export class AnnotationsParsingError extends YOLOAnnotationsLoadingError { | ||
constructor(imageName: string) { | ||
super(`Unexpected error occurred during parsing of ${imageName} annotations file`); | ||
this.name = "AnnotationsParsingError"; | ||
this.name = 'AnnotationsParsingError'; | ||
} | ||
} |
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