You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
447 B
Kotlin
24 lines
447 B
Kotlin
package tasks.model
|
|
|
|
import org.simpleframework.xml.Attribute
|
|
import org.simpleframework.xml.Root
|
|
import org.simpleframework.xml.Text
|
|
|
|
@Root(name = "failure", strict = false)
|
|
class Failure {
|
|
@JvmField
|
|
@field:Attribute(name = "message")
|
|
var message: String = ""
|
|
|
|
@JvmField
|
|
@field:Attribute(name = "type")
|
|
var type: String = ""
|
|
|
|
@JvmField
|
|
@field:Text
|
|
var text: String = ""
|
|
|
|
fun textHtml(): String {
|
|
return text.replace("\n", "<br>")
|
|
}
|
|
} |