Catch exceptions from list_attributes() and list_dependencies()
see
@@ -9,6 +9,10 @@ from onlinejudge_verify.languages.special_comments import list_special_comments
class LanguageEnvironment(object):
@abc.abstractmethod
def compile(self, path: pathlib.Path, *, basedir: pathlib.Path, tempdir: pathlib.Path) -> None:
+ """
+ :throws Exception:
+ """
+
raise NotImplementedError
@abc.abstractmethod
@@ -18,14 +22,27 @@ class LanguageEnvironment(object):
class Language(object):
def list_attributes(self, path: pathlib.Path, *, basedir: pathlib.Path) -> Dict[str, str]:
+ """
+ :throws Exception:
+ """
+
return list_special_comments(path)
@abc.abstractmethod
def list_dependencies(self, path: pathlib.Path, *, basedir: pathlib.Path) -> List[pathlib.Path]:
+ """
+ :throws Exception:
+ """
+
raise NotImplementedError
@abc.abstractmethod
def bundle(self, path: pathlib.Path, *, basedir: pathlib.Path) -> bytes:
+ """
+ :throws Exception:
+ :throws NotImplementedError:
+ """
+
raise NotImplementedError
def is_verification_file(self, path: pathlib.Path, *, basedir: pathlib.Path) -> bool:
