net.sf.beep4j.internal.profile
Class BEEPError

java.lang.Object
  extended by net.sf.beep4j.internal.profile.BEEPError

public final class BEEPError
extends java.lang.Object

Object representation of a BEEP error element. A BEEP error has a code and a diagnostic message.

Author:
Simon Raess

Constructor Summary
BEEPError(int code, java.lang.String message)
          Creates a new BEEPError object with the given code and diagnostic message.
 
Method Summary
 int getCode()
          Gets the three digit status code.
 java.lang.String getMessage()
          Gets the diagnostic message.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BEEPError

public BEEPError(int code,
                 java.lang.String message)
Creates a new BEEPError object with the given code and diagnostic message. The message can be null.

Parameters:
code - the status code
message - the diagnostic message
Method Detail

getCode

public int getCode()
Gets the three digit status code. See section 8 of RFC 3080.

Returns:
the status code

getMessage

public java.lang.String getMessage()
Gets the diagnostic message.

Returns:
the diagnostic message

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 null. All Rights Reserved.