Call Super Constructor

后端 未结 2 867
别那么骄傲
别那么骄傲 2021-02-18 17:06

I have a custom exception class like the following :

case class CustomException(errorMsg:String)  extends Exception(error:String)

All what I ne

2条回答
  •  醉话见心
    2021-02-18 17:50

    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.

提交回复
热议问题