Call Super Constructor

后端 未结 2 881
别那么骄傲
别那么骄傲 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:47
    case class CustomException(errorMsg:String)  extends Exception(errorMsg)
    
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题