Appia Documentation

net.sf.appia.core
Class AppiaEventException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.appia.core.AppiaException
              extended by net.sf.appia.core.AppiaEventException
All Implemented Interfaces:
java.io.Serializable

public class AppiaEventException
extends AppiaException

Thrown when an exception ocurs during Event manipulation.

Version:
0.1
Author:
Alexandre Pinto
See Also:
Event, Serialized Form

Field Summary
static int ATTRIBUTEMISSING
          Tried to initialize an Event without giving all the attributes necessary.
static int CLOSEDCHANNEL
          Tried to send an Event on a closed Channel.
static int COULDNOTBLOCK
          Method Event.asyncGo(net.sf.appia.core.Channel, int) was called from the Appia Thread.
static int NOTINITIALIZED
          Tried to send an Event not initialized.
 int type
          The type of the exception.
static int UNKNOWN
          Defauld error code.
static int UNKNOWNQUALIFIER
          Tried to create a ChannelEvent without giving an EventQualifier.
static int UNKNOWNSESSION
          Tried to get an Events first session with an invalid source Session.
static int UNWANTEDEVENT
          Tried to initialize an Event that doesn't have a ChannelEventRoute.
static int WRONGTHREAD
          Either: Event.asyncGo(Channel, int) was called from within the Appia thread Event.go() was called from outside the Appia thread.
 
Constructor Summary
AppiaEventException(int type)
          Constructs an AppiaEventException without a details message.
AppiaEventException(int type, java.lang.String s)
          Constructs an AppiaEventException with a details message.
AppiaEventException(java.lang.String s, java.lang.Throwable cause)
          Constructs an AppiaEventException with a message and a throwable cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
Defauld error code.

See Also:
Constant Field Values

NOTINITIALIZED

public static final int NOTINITIALIZED
Tried to send an Event not initialized.

See Also:
Event.init(), Constant Field Values

ATTRIBUTEMISSING

public static final int ATTRIBUTEMISSING
Tried to initialize an Event without giving all the attributes necessary.

See Also:
Event.init(), Constant Field Values

UNKNOWNQUALIFIER

public static final int UNKNOWNQUALIFIER
Tried to create a ChannelEvent without giving an EventQualifier.

See Also:
ChannelEvent, EventQualifier, Constant Field Values

UNKNOWNSESSION

public static final int UNKNOWNSESSION
Tried to get an Events first session with an invalid source Session.

See Also:
Channel.getFirstSession(net.sf.appia.core.ChannelEventRoute, int, net.sf.appia.core.Session), Constant Field Values

UNWANTEDEVENT

public static final int UNWANTEDEVENT
Tried to initialize an Event that doesn't have a ChannelEventRoute.
The usual reason for it, is that no Layer has declared the Event as provided.

See Also:
ChannelEventRoute, Layer, Constant Field Values

CLOSEDCHANNEL

public static final int CLOSEDCHANNEL
Tried to send an Event on a closed Channel.

See Also:
ChannelInit, ChannelClose, Constant Field Values

COULDNOTBLOCK

public static final int COULDNOTBLOCK
Method Event.asyncGo(net.sf.appia.core.Channel, int) was called from the Appia Thread. This cannot appen.

See Also:
Constant Field Values

WRONGTHREAD

public static final int WRONGTHREAD
Either:

See Also:
Constant Field Values

type

public int type
The type of the exception.
It can take 8 values: UNKNOWN, NOTINITIALIZED, ATTRIBUTEMISSING, UNKNOWNQUALIFIER, UNKNOWNSESSION, UNWANTEDEVENT, CLOSEDCHANNEL, INITIALIZEDASYNC, COULDNOTBLOCK, WRONGTHREAD

Constructor Detail

AppiaEventException

public AppiaEventException(int type)
Constructs an AppiaEventException without a details message.

Parameters:
type - the type of the exception

AppiaEventException

public AppiaEventException(int type,
                           java.lang.String s)
Constructs an AppiaEventException with a details message.

Parameters:
type - the type of the exception
s - the details message

AppiaEventException

public AppiaEventException(java.lang.String s,
                           java.lang.Throwable cause)
Constructs an AppiaEventException with a message and a throwable cause.

Parameters:
s - the details message
cause - the exception that caused this one.

Appia Documentation

COPYRIGHT 2006-2009, University of Lisbon and INESC-ID
For updates and related information please see Appia Home Page
Send questions, sugestions or remarks to the appia-users mailing list