public final class

ApiException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ chan.content.ApiException

Class Overview

Thrown by sending methods from ChanPerformer.

Summary

Nested Classes
class ApiException.BanExtra

SEND_ERROR_BANNED extra holder. 

class ApiException.WordsExtra

SEND_ERROR_SPAM_LIST extra holder. 

Fields
public static final int ARCHIVE_ERROR_NO_ACCESS

No access to archive thread: unsupported or canceled operation.

public static final int ARCHIVE_ERROR_TOO_OFTEN

User sends archive requests too often.

public static final int DELETE_ERROR_NOT_FOUND

Deleted post was not found.

public static final int DELETE_ERROR_NO_ACCESS

No access to delete posts: unsupported or canceled operation.

public static final int DELETE_ERROR_PASSWORD

User entered invalid password.

public static final int DELETE_ERROR_TOO_NEW

User must wait before deleting new posts.

public static final int DELETE_ERROR_TOO_OFTEN

User sends delete post requests too often.

public static final int DELETE_ERROR_TOO_OLD

The post is too old to delete.

public static final int FLAG_KEEP_CAPTCHA

Flag: client will not reset captcha due to exception.

public static final int REPORT_ERROR_EMPTY_COMMENT

User must specify comment to send report.

public static final int REPORT_ERROR_NO_ACCESS

No access to report post: unsupported or canceled operation.

public static final int REPORT_ERROR_TOO_OFTEN

User sends report post requests too often.

public static final int SEND_ERROR_BANNED

User is banned.

public static final int SEND_ERROR_CAPTCHA

Mistyped or empty captcha.

public static final int SEND_ERROR_CLOSED

Thread closed.

public static final int SEND_ERROR_EMPTY_COMMENT

User must specify comment to send post.

public static final int SEND_ERROR_EMPTY_FILE

User must attach file to send post.

public static final int SEND_ERROR_EMPTY_SUBJECT

User must specify subject to send post.

public static final int SEND_ERROR_FIELD_TOO_LONG

Comment or another field exceeds limit.

public static final int SEND_ERROR_FILES_LIMIT

Reached maximum files count in thread.

public static final int SEND_ERROR_FILES_TOO_MANY

Too many files attached to post.

public static final int SEND_ERROR_FILE_EXISTS

File with the same hash sum exists on server.

public static final int SEND_ERROR_FILE_NOT_SUPPORTED

File type is not supported.

public static final int SEND_ERROR_FILE_TOO_BIG

File size exceeds limit.

public static final int SEND_ERROR_NO_ACCESS

No access to post on this board or thread.

public static final int SEND_ERROR_NO_BOARD

Board not exists error.

public static final int SEND_ERROR_NO_THREAD

Thread not exists error.

public static final int SEND_ERROR_SPAM_LIST

Comment or another field contains a word from spam list.

public static final int SEND_ERROR_TOO_FAST

User sends posts too fast.

Public Constructors
ApiException(int errorType)

Constructor for an ApiException.

ApiException(int errorType, int flags)

Constructor for an ApiException.

ApiException(int errorType, Object extra)

Constructor for an ApiException.

ApiException(int errorType, int flags, Object extra)

Constructor for an ApiException.

ApiException(String detailMessage)

Constructor for an ApiException.

ApiException(String detailMessage, int flags)

Constructor for an ApiException.

[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Fields

public static final int ARCHIVE_ERROR_NO_ACCESS

No access to archive thread: unsupported or canceled operation.

public static final int ARCHIVE_ERROR_TOO_OFTEN

User sends archive requests too often.

public static final int DELETE_ERROR_NOT_FOUND

Deleted post was not found.

public static final int DELETE_ERROR_NO_ACCESS

No access to delete posts: unsupported or canceled operation.

public static final int DELETE_ERROR_PASSWORD

User entered invalid password.

public static final int DELETE_ERROR_TOO_NEW

User must wait before deleting new posts.

public static final int DELETE_ERROR_TOO_OFTEN

User sends delete post requests too often.

public static final int DELETE_ERROR_TOO_OLD

The post is too old to delete.

public static final int FLAG_KEEP_CAPTCHA

Flag: client will not reset captcha due to exception.

public static final int REPORT_ERROR_EMPTY_COMMENT

User must specify comment to send report.

public static final int REPORT_ERROR_NO_ACCESS

No access to report post: unsupported or canceled operation.

public static final int REPORT_ERROR_TOO_OFTEN

User sends report post requests too often.

public static final int SEND_ERROR_BANNED

User is banned.

May be returned with ApiException.BanExtra instance.

public static final int SEND_ERROR_CAPTCHA

Mistyped or empty captcha.

public static final int SEND_ERROR_CLOSED

Thread closed.

public static final int SEND_ERROR_EMPTY_COMMENT

User must specify comment to send post.

public static final int SEND_ERROR_EMPTY_FILE

User must attach file to send post.

public static final int SEND_ERROR_EMPTY_SUBJECT

User must specify subject to send post.

public static final int SEND_ERROR_FIELD_TOO_LONG

Comment or another field exceeds limit.

public static final int SEND_ERROR_FILES_LIMIT

Reached maximum files count in thread.

public static final int SEND_ERROR_FILES_TOO_MANY

Too many files attached to post.

public static final int SEND_ERROR_FILE_EXISTS

File with the same hash sum exists on server.

public static final int SEND_ERROR_FILE_NOT_SUPPORTED

File type is not supported.

public static final int SEND_ERROR_FILE_TOO_BIG

File size exceeds limit.

public static final int SEND_ERROR_NO_ACCESS

No access to post on this board or thread.

public static final int SEND_ERROR_NO_BOARD

Board not exists error.

public static final int SEND_ERROR_NO_THREAD

Thread not exists error.

public static final int SEND_ERROR_SPAM_LIST

Comment or another field contains a word from spam list.

May be returned with ApiException.WordsExtra instance.

public static final int SEND_ERROR_TOO_FAST

User sends posts too fast.

Public Constructors

public ApiException (int errorType)

Constructor for an ApiException.

Parameters
errorType int: Error type constant value.

public ApiException (int errorType, int flags)

Constructor for an ApiException.

Parameters
errorType int: Error type constant value.
flags int: Additional option flags. The following flags are available: FLAG_KEEP_CAPTCHA.

public ApiException (int errorType, Object extra)

Constructor for an ApiException.

Parameters
errorType int: Error type constant value.
extra Object: Additional extra data. The following types are available ApiException.BanExtra, ApiException.WordsExtra.

public ApiException (int errorType, int flags, Object extra)

Constructor for an ApiException.

Parameters
errorType int: Error type constant value.
flags int: Additional option flags. The following flags are available: FLAG_KEEP_CAPTCHA.
extra Object: Additional extra data. The following types are available ApiException.BanExtra, ApiException.WordsExtra.

public ApiException (String detailMessage)

Constructor for an ApiException.

Parameters
detailMessage String: Error message.

public ApiException (String detailMessage, int flags)

Constructor for an ApiException.

Parameters
detailMessage String: Error message.
flags int: Additional option flags. The following flags are available: FLAG_KEEP_CAPTCHA.