public class ComponentException extends Exception
Constructor and Description |
---|
ComponentException(Authorization errorCondition) |
ComponentException(Authorization errorCondition,
String text) |
ComponentException(Authorization errorCondition,
String text,
String message) |
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
Authorization |
getErrorCondition() |
protected String |
getErrorMessagePrefix() |
String |
getMessage() |
String |
getMessageWithPosition() |
String |
getName() |
String |
getText() |
String |
getType() |
Packet |
makeElement(Packet packet,
boolean insertOriginal) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ComponentException(Authorization errorCondition)
public ComponentException(Authorization errorCondition, String text)
errorCondition
- text
- human readable message will be send to clientpublic ComponentException(Authorization errorCondition, String text, String message)
errorCondition
- message
- exception message for loggingtext
- human readable message will be send to clientpublic String getCode()
public Authorization getErrorCondition()
protected String getErrorMessagePrefix()
public String getMessage()
getMessage
in class Throwable
public String getMessageWithPosition()
public String getName()
public String getText()
public String getType()
public Packet makeElement(Packet packet, boolean insertOriginal) throws PacketErrorTypeException
PacketErrorTypeException
Copyright © 2016 "Tigase, Inc.". All rights reserved.