corda / net.corda.core

Package net.corda.core

Types

ClientRelevantError

Allows an implementing Throwable to be propagated to clients.

interface ClientRelevantError

CordaOID

OIDs used for the Corda platform. All entries MUST be defined in this file only and they MUST NOT be removed. If an OID is incorrectly assigned, it should be marked deprecated and NEVER be reused again.

object CordaOID

CordaThrowable

interface CordaThrowable

Annotations

CordaInternal

These methods and annotations are not part of Corda's API compatibility guarantee and applications should not use them.

annotation class CordaInternal

DoNotImplement

This annotation is for interfaces and abstract classes that provide Corda functionality to user applications. Future versions of Corda may add new methods to such interfaces and classes, but will not remove or modify existing methods.

annotation class DoNotImplement

Exceptions

CordaException

open class CordaException : Exception, CordaThrowable

CordaRuntimeException

open class CordaRuntimeException : RuntimeException, CordaThrowable

Extensions for External Classes

rx.Observable

Functions

doOnError

Returns a DataFeed that processes errors according to the provided action.

fun <SNAPSHOT, ELEMENT> DataFeed<SNAPSHOT, ELEMENT>.doOnError(action: (Throwable) -> Unit): DataFeed<SNAPSHOT, ELEMENT>

mapErrors

Returns a DataFeed that transforms errors according to the provided transform function.

fun <SNAPSHOT, ELEMENT> DataFeed<SNAPSHOT, ELEMENT>.mapErrors(transform: (Throwable) -> Throwable): DataFeed<SNAPSHOT, ELEMENT>

toObservable

fun <A> CordaFuture<out A>.toObservable(): Observable<A>