mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 17:20:11 +08:00
Add optional message
This commit is contained in:
parent
494b160ade
commit
fa2d0435a1
@ -141,7 +141,7 @@ fun Map<UInt, ByteArray>.printTLVMap(name: String = "", keyLength: Int = 1) =
|
||||
})
|
||||
|
||||
@Suppress("NOTHING_TO_INLINE")
|
||||
internal inline fun unsupported(): Nothing = error("Unsupported")
|
||||
internal inline fun unsupported(message: String? = null): Nothing = error(message ?: "Unsupported")
|
||||
|
||||
@Suppress("NOTHING_TO_INLINE")
|
||||
internal inline fun illegalArgument(message: String? = null): Nothing = error(message ?: "Illegal argument passed")
|
||||
|
Loading…
Reference in New Issue
Block a user