toggle menu
BotCommands
JVM
switch theme
search in API
BotCommands
/
io.github.freya022.botcommands.api.core.service
/
ServiceError
Service
Error
class
ServiceError
(
source
)
Members
Types
Companion
Link copied to clipboard
object
Companion
Error
Type
Link copied to clipboard
enum
ErrorType
:
Enum
<
ServiceError.ErrorType
>
Properties
error
Message
Link copied to clipboard
val
errorMessage
:
String
error
Type
Link copied to clipboard
val
errorType
:
ServiceError.ErrorType
extra
Link copied to clipboard
val
extra
:
Map
<
String
,
Any
>
nested
Error
Link copied to clipboard
val
nestedError
:
ServiceError
?
sibling
Errors
Link copied to clipboard
val
siblingErrors
:
List
<
ServiceError
>
Functions
component1
Link copied to clipboard
operator
fun
component1
(
)
:
ServiceError.ErrorType
component2
Link copied to clipboard
operator
fun
component2
(
)
:
String
to
Detailed
String
Link copied to clipboard
fun
toDetailedString
(
)
:
String
to
Simple
String
Link copied to clipboard
fun
toSimpleString
(
)
:
String
with
Error
Type
Link copied to clipboard
fun
withErrorType
(
errorType
:
ServiceError.ErrorType
)
:
ServiceError
with
Sibling
Link copied to clipboard
fun
withSibling
(
serviceError
:
ServiceError
)
:
ServiceError
with
Siblings
Link copied to clipboard
fun
withSiblings
(
serviceErrors
:
List
<
ServiceError
>
)
:
ServiceError