projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace error return object with Kotlin version
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
ajax
/
JsonErrorReturnObject.kt
diff --git a/src/main/kotlin/net/pterodactylus/sone/web/ajax/JsonErrorReturnObject.kt
b/src/main/kotlin/net/pterodactylus/sone/web/ajax/JsonErrorReturnObject.kt
new file mode 100644
(file)
index 0000000..
535a3d0
--- /dev/null
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/ajax/JsonErrorReturnObject.kt
@@ -0,0
+1,6
@@
+package net.pterodactylus.sone.web.ajax
+
+/**
+ * [JsonReturnObject] that signals an error has occured.
+ */
+data class JsonErrorReturnObject(val error: String) : JsonReturnObject(false)