Magentix2  2.1.1
es.upv.dsic.gti_ia.trace.TraceError Class Reference
Collaboration diagram for es.upv.dsic.gti_ia.trace.TraceError:

List of all members.

Public Member Functions

 TraceError (String name, String description)
String getName ()
String getDescription ()

Static Public Attributes

static final int TRACE_ERROR = 0
static final int ENTITY_NOT_FOUND = 1
static final int PROVIDER_NOT_FOUND = 2
static final int SERVICE_NOT_FOUND = 3
static final int SUBSCRIPTION_NOT_FOUND = 4
static final int ENTITY_DUPLICATE = 5
static final int SERVICE_DUPLICATE = 6
static final int SUBSCRIPTION_DUPLICATE = 7
static final int BAD_ENTITY = 8
static final int BAD_SERVICE = 9
static final int PUBLISH_ERROR = 10
static final int UNPUBLISH_ERROR = 11
static final int SUBSCRIPTION_ERROR = 12
static final int UNSUBSCRIPTION_ERROR = 13
static final int AUTHORIZATION_ERROR = 14
static final int SERVICE_NOT_ALLOWED = 15
static final int MAX_TRACE_ERROR = 16
static final TraceError[] TraceErrors

Detailed Description

Specification of error messages related to the trace support

Author:
L Burdalo (lburdalo@dsic.upv.es)

Definition at line 9 of file TraceError.java.


Constructor & Destructor Documentation

es.upv.dsic.gti_ia.trace.TraceError.TraceError ( String  name,
String  description 
)

Constructor which creates a trace error message with the specified name and description

Parameters:
nameIdentifier name of the error message
descriptionHuman readable description of the error

Definition at line 138 of file TraceError.java.

                                                           {
                this.name = name;
                this.description = description;
        }

Member Function Documentation

Returns the description of the error message

Returns:
Description of the error

Definition at line 157 of file TraceError.java.

                                       {
                return this.description;
        }

Returns the identifier name of the error message

Returns:
Name of the error

Definition at line 148 of file TraceError.java.

                                {
                return this.name;
        }

Member Data Documentation

Unauthorized to do so

Definition at line 74 of file TraceError.java.

Tracing entity not correct

Definition at line 50 of file TraceError.java.

Tracing service not correct

Definition at line 54 of file TraceError.java.

Tracing entity already present in the system

Definition at line 38 of file TraceError.java.

Tracing entity not present in the system

Definition at line 22 of file TraceError.java.

Number of available trace error messages

Definition at line 85 of file TraceError.java.

Provider is not offering the tracing service

Definition at line 26 of file TraceError.java.

Impossible to publish the tracing service

Definition at line 58 of file TraceError.java.

Tracing service already offered by the tracing entity

Definition at line 42 of file TraceError.java.

The trace mask does not allow that service to publish or request that service.

Definition at line 80 of file TraceError.java.

Tracing service not offered by any entity in the system

Definition at line 30 of file TraceError.java.

Subscription already exists

Definition at line 46 of file TraceError.java.

Impossible to subscribe to the tracing service

Definition at line 66 of file TraceError.java.

Subscription to the tracing service not found

Definition at line 34 of file TraceError.java.

Undefined trace error

Definition at line 18 of file TraceError.java.

Initial value:
 new TraceError[] {
                        new TraceError("TRACE_ERROR", "Undefined trace error"),
                        new TraceError("ENTITY_NOT_FOUND",
                                        "Tracing entity not present in the system"),
                        new TraceError("PROVIDER_NOT_FOUND",
                                        "Provider is not offering the tracing service"),
                        new TraceError("SERVICE_NOT_FOUND",
                                        "Tracing service not offered by any entity in the system"),
                        new TraceError("SUBSCRIPTION_NOT_FOUND",
                                        "Subscription to the tracing service not found"),
                        new TraceError("ENTITY_DUPLICATE",
                                        "Tracing entity already present in the system"),
                        new TraceError("SERVICE_DUPLICATE",
                                        "Tracing service already offered by the tracing entity"),
                        new TraceError("SUBSCRIPTION_DUPLICATE",
                                        "Subscription already exists"),
                        new TraceError("BAD_ENTITY", "Tracing entity not correct"),
                        new TraceError("BAD_SERVICE", "Tracing service not correct"),
                        new TraceError("PUBLISH_ERROR",
                                        "Impossible to publish the tracing service"),
                        new TraceError("UNPUBLISH_ERROR",
                                        "Impossible to unpublish the tracing service"),
                        new TraceError("SUBSCRIPTION_ERROR",
                                        "Impossible to subscribe to the tracing service"),
                        new TraceError("UNSUBSCRIPTION_ERROR",
                                        "Impossible to unsubscribe from tracing service"),
                        new TraceError("AUTHORIZATION_ERROR", "Unauthorized to do so"),
                        new TraceError("SERVICE_NOT_ALLOWED", "Tracing service not allowed") }

Array of available trace error messages

Definition at line 90 of file TraceError.java.

Impossible to unpublish the tracing service

Definition at line 62 of file TraceError.java.

Impossible to unsubscribe from tracing service

Definition at line 70 of file TraceError.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables