Package org.eclipse.ecf.bulletinboard

Examples of org.eclipse.ecf.bulletinboard.BBException


   *
   * @see org.tigris.bbapi.phpBB.Forum#createThread()
   */
  @Override
  public IThread createThread() throws BBException {
    throw new BBException("This forum cannot hold threads.");
  }
View Full Code Here


  public IThread createThread() throws BBException {
    throw new BBException("This forum cannot hold threads.");
  }

  public boolean postThread(IThread thread) throws BBException {
    throw new BBException("This forum cannot hold threads.");
  }
View Full Code Here

          loggedInMemberId = id;
          return true;
        }
      }
    } catch (Exception e) {
      throw new BBException(e);
    }
    return false;
  }
View Full Code Here

      request.execute();
      request.releaseConnection();
      loggedInMemberId = null;
      return true;
    } catch (Exception e) {
      throw new BBException(e);
    }
  }
View Full Code Here

      String resp = null;
      try {
        request.execute();
        resp = request.getResponseBodyAsString();
      } catch (IOException e) {
        throw new BBException(e);
      }
      request.releaseConnection();
      if (resp != null) {
        this.title = getParser().parseTitle(resp);
      }
View Full Code Here

    String vbmsg = parseInformationMessage(seq);
    if (vbmsg == null) {
      vbmsg = parsePostErrorMessage(seq);
    }
    if (vbmsg != null) {
      return new BBException(msg, new VBException(new String(StringUtil
          .stripHTMLTrim(vbmsg))));
    } else {
      return new BBException(msg);
    }
  }
View Full Code Here

        prev = f;
      }
      t.forum = f;
      return t;
    } else {
      throw new BBException("Failed to parse the thread.");
    }
  }
View Full Code Here

   */
  public void close() throws BBException {
    if (isConnected()) {
      mainContainer.disconnect();
    } else {
      throw new BBException("Connection already closed.");
    }
  }
View Full Code Here

  }

  private BBException createPHPBBException(String msg, CharSequence seq) {
    final String phpBBmsg = parseInformationMessage(seq);
    if (phpBBmsg != null) {
      return new BBException(msg, new PHPBBException(phpBBmsg));
    } else {
      return new BBException(msg);
    }
  }
View Full Code Here

            // TODO Auto-generated catch block
            e.printStackTrace();
          }
        }
      } else {
        throw new BBException("The message was not posted.");
      }
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.bulletinboard.BBException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.