What do you think of writing exceptions like that ...
# getting-started
f
What do you think of writing exceptions like that :
Copy code
fun init(){
        if(media == null && txt == null) throw `Response must have a text or a media`()
    }
    class `Response must have a text or a media`() : RuntimeException()