Hello guys I need help with converting Try to either with types, The issue is when I return Left or Right in getOrElse of Try , the other type is set to Nothing By default , which changes my function signature
Try{//some code}.getOrElse { err->
Either.Left<Error>(InternalServerError())
}