Skip to content
This repository has been archived by the owner on Sep 27, 2018. It is now read-only.

Error Messages

Budi Syahiddin edited this page Dec 24, 2017 · 1 revision

INVALID_POST_STRUCT : 5640

ERROR_DELETING_POST : 8974

INVALID_POSTID : 4186

INVALID_LOCATIONID : 1782

DUPLICATE_RECORDS_FOUND : 8451

FILE_SIZE_TOO_BIG : 654

Taken from ErrorMsg.kt

data class ErrorMsg(val msg: String,
                    val errorId: Int,
                    val docsLink: String? = null)

const val INVALID_POST_STRUCT = 5640
const val ERROR_DELETING_POST = 8974
const val INVALID_POSTID = 4186
const val INVALID_LOCATIONID = 1782
const val DUPLICATE_RECORDS_FOUND = 8451
const val FILE_SIZE_TOO_BIG = 654

class DuplicateFound(msg: String): Exception(msg)
class InvalidPostObject(msg: String) : Exception(msg)
class InvalidFileExtension(msg:String) : Exception(msg)
class FileSizeTooBig(msg:String) :Exception(msg)
Clone this wiki locally