public final class

RedirectException

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

Class Overview

Thrown to inform client about redirection. These exceptions is thrown by onReadThreads(chan.content.ChanPerformer.ReadThreadsData) or onReadPosts(chan.content.ChanPerformer.ReadPostsData) when data returned from server might be considered as redirect.

Summary

Public Methods
static RedirectException toBoard(String boardName)

Creates a new instance of RedirectException that causes client to follow the board.

static RedirectException toThread(String boardName, String threadNumber, String postNumber)

Creates a new instance of RedirectException that causes client to follow the thread.

static RedirectException toUri(Uri uri)

Creates a new instance of RedirectException that causes client to follow the URI.

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

Public Methods

public static RedirectException toBoard (String boardName)

Creates a new instance of RedirectException that causes client to follow the board.

Parameters
boardName String: Redirected board name.
Returns
RedirectException

public static RedirectException toThread (String boardName, String threadNumber, String postNumber)

Creates a new instance of RedirectException that causes client to follow the thread.

Parameters
boardName String: Redirected board name.
threadNumber String: Redirected thread number.
postNumber String: Redirected post number.
Returns
RedirectException

public static RedirectException toUri (Uri uri)

Creates a new instance of RedirectException that causes client to follow the URI.

Parameters
uri Uri: Redirected URI.
Returns
RedirectException