skrypton-api / com.waicool20.skrypton.util

Package com.waicool20.skrypton.util

Utility classes and functions.

Types

KLogger

class KLogger

Class that wraps a Logger instance, and adds logging functions which receive lambdas as their argument. These functions are lazily evaluated.

OS

object OS

Operating system related utility functions and checks.

SystemUtils

object SystemUtils

System utility functions

Exceptions

DisposeFailException

class DisposeFailException : Exception

Exception thrown when error occurs during the disposal of a native component.

InitializationError

class InitializationError : Exception

Exception thrown during initialization.

Extensions for External Classes

java.nio.file.Path

Functions

loggerFor

fun <T> loggerFor(): KLogger

Gets a KLogger instance for a given class.