W3cubDocs

/Kotlin

Exception

Platform and version requirements: JS (1.1), Native (1.3)
open class Exception : Throwable
Platform and version requirements: JVM (1.1)
typealias Exception = Exception

Constructors

Platform and version requirements: JS (1.0), Native (1.0)

<init>

<init>()
<init>(message: String?)
<init>(message: String?, cause: Throwable?)
<init>(cause: Throwable?)

Inherited Functions

Platform and version requirements: Native (1.3)

getStackTrace

fun getStackTrace(): Array<String>
Platform and version requirements: Native (1.3)

printStackTrace

fun printStackTrace()
Platform and version requirements: Native (1.3)

toString

Returns a string representation of the object.

open fun toString(): String

Inheritors

CharacterCodingException

The exception thrown when a character encoding or decoding error occurs.

Platform and version requirements: JS (1.3), Native (1.3)
open class CharacterCodingException : Exception
Platform and version requirements: JVM (1.3)
typealias CharacterCodingException = CharacterCodingException
Platform and version requirements: JVM (1.1)

IllegalCallableAccessException

An exception that is thrown when call is invoked on a callable or get or set is invoked on a property and that callable is not accessible (in JVM terms) from the calling method.

class IllegalCallableAccessException : Exception
Platform and version requirements: JVM (1.1)

IllegalPropertyDelegateAccessException

An exception that is thrown when getDelegate is invoked on a KProperty object that was not made accessible with isAccessible.

class IllegalPropertyDelegateAccessException : Exception
Platform and version requirements: JVM (1.1)

NoSuchPropertyException

An exception that is thrown when the code tries to introspect a property of a class or a package and that class or the package no longer has that property.

class NoSuchPropertyException : Exception

RuntimeException

Platform and version requirements: JS (1.1), Native (1.3)
open class RuntimeException : Exception
Platform and version requirements: JVM (1.1)
typealias RuntimeException = RuntimeException

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-exception/index.html