I have a custom exception class like the following :
case class CustomException(errorMsg:String) extends Exception(error:String)
All what I ne
case class CustomException(errorMsg:String) extends Exception(errorMsg)
You're calling the superclass's constructor, but the argument you are passing (error) isn't bound to anything.
error