Timur Atakishiev
02/04/2020, 3:25 PMDTO
data class CompanyCreateDto(
val name: String,
val address: String
)
The dto is send by front end for me. Problem is when the name is null kotlin throws an exception that can not be handled. Is it any library or any approach, that provide an ability to give a custom exception with text like name can not be null
for exampleMatheus
02/04/2020, 4:00 PMArian Stolwijk
02/05/2020, 8:05 AMMatteo Mirk
02/05/2020, 8:28 AMRajkumar Singh
02/05/2020, 11:56 PM