Custom Exception in scala - Stack Overflow
stackoverflow.com › questions › 38243530Apr 12, 2018 · how can i create custom exceptions in Scala extending Exceptionclass and throw them when exception occurs as well as catch them. example in java : class CustomException extends Exception { public final static String _FAIL_TO_INSERT = "FAIL_TO_INSERT"; } scala exception Share Follow edited Apr 12, 2018 at 17:16 Andrii Abramov