```class RideException(private val errorCode: Erro...
# announcements
c
Copy code
class RideException(private val errorCode: ErrorCode, t: Throwable) : Exception(t) {

    constructor(errorCode: ErrorCode) : super(errorCode.exceptionMessage)
}
getting error near
super
-> primary constructor expected
g
your primary constructor takes two parameters, an
ErrorCode
and a
Throwable
. When you call
super
you have to provide both.
k
*you need to call
this
too
☝️ 2
Maybe change your primary constructor to be a secondary one?