orException

fun VirtualFile?.orException(messageBuilder: () -> String = { "" }): VirtualFile

Return

this if it is not null or throws IllegalStateException with message from messageBuilder

Parameters

messageBuilder

message builder