//
koffee-backend
/
eu.yeger.koffee.model.dto
/
Result
/
Failure
Failure
Result
class for unsuccessful operations.
Author
Jan Müller
class
Failure
<
T
:
Any
> (error:
String
,status:
HttpStatusCode
) :
Result
Content copied to clipboard
Constructors
Functions
Properties
Parameters
Parameters
status
The HTTP status code.
T
The type of the
Result
.
Constructors
<init>
Link copied to clipboard
The type of the
Result
.
fun <
T
:
Any
>
<init>
(error:
String
, status:
HttpStatusCode
)
Content copied to clipboard
Functions
equals
Link copied to clipboard
open operator override fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
hashCode
Link copied to clipboard
open override fun
hashCode
():
Int
Content copied to clipboard
toString
Link copied to clipboard
open override fun
toString
():
String
Content copied to clipboard
Properties
error
Link copied to clipboard
The error of the
Result
.
val
error
:
String
Content copied to clipboard
status
Link copied to clipboard
The HTTP status code.
override val
status
:
HttpStatusCode
Content copied to clipboard