es.upv.dsic.gti_ia.trace
Class TraceError

java.lang.Object
  extended by es.upv.dsic.gti_ia.trace.TraceError

public class TraceError
extends Object

Specification of error messages related to the trace support

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

Field Summary
static int AUTHORIZATION_ERROR
          Unauthorized to do so
static int BAD_ENTITY
          Tracing entity not correct
static int BAD_SERVICE
          Tracing service not correct
static int ENTITY_DUPLICATE
          Tracing entity already present in the system
static int ENTITY_NOT_FOUND
          Tracing entity not present in the system
static int MAX_TRACE_ERROR
          Number of available trace error messages
static int PROVIDER_NOT_FOUND
          Provider is not offering the tracing service
static int PUBLISH_ERROR
          Impossible to publish the tracing service
static int SERVICE_DUPLICATE
          Tracing service already offered by the tracing entity
static int SERVICE_NOT_FOUND
          Tracing service not offered by any entity in the system
static int SUBSCRIPTION_DUPLICATE
          Subscription already exists
static int SUBSCRIPTION_ERROR
          Impossible to subscribe to the tracing service
static int SUBSCRIPTION_NOT_FOUND
          Subscription to the tracing service not found
static int TRACE_ERROR
          Undefined trace error
static TraceError[] TraceErrors
          Array of available trace error messages
static int UNPUBLISH_ERROR
          Impossible to unpublish the tracing service
static int UNSUBSCRIPTION_ERROR
          Impossible to unsubscribe from tracing service
 
Constructor Summary
TraceError(String name, String description)
          Constructor which creates a trace error message with the specified name and description
 
Method Summary
 String getDescription()
          Returns the description of the errormessage
 String getName()
          Returns the identifier name of the error message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE_ERROR

public static final int TRACE_ERROR
Undefined trace error

See Also:
Constant Field Values

ENTITY_NOT_FOUND

public static final int ENTITY_NOT_FOUND
Tracing entity not present in the system

See Also:
Constant Field Values

PROVIDER_NOT_FOUND

public static final int PROVIDER_NOT_FOUND
Provider is not offering the tracing service

See Also:
Constant Field Values

SERVICE_NOT_FOUND

public static final int SERVICE_NOT_FOUND
Tracing service not offered by any entity in the system

See Also:
Constant Field Values

SUBSCRIPTION_NOT_FOUND

public static final int SUBSCRIPTION_NOT_FOUND
Subscription to the tracing service not found

See Also:
Constant Field Values

ENTITY_DUPLICATE

public static final int ENTITY_DUPLICATE
Tracing entity already present in the system

See Also:
Constant Field Values

SERVICE_DUPLICATE

public static final int SERVICE_DUPLICATE
Tracing service already offered by the tracing entity

See Also:
Constant Field Values

SUBSCRIPTION_DUPLICATE

public static final int SUBSCRIPTION_DUPLICATE
Subscription already exists

See Also:
Constant Field Values

BAD_ENTITY

public static final int BAD_ENTITY
Tracing entity not correct

See Also:
Constant Field Values

BAD_SERVICE

public static final int BAD_SERVICE
Tracing service not correct

See Also:
Constant Field Values

PUBLISH_ERROR

public static final int PUBLISH_ERROR
Impossible to publish the tracing service

See Also:
Constant Field Values

UNPUBLISH_ERROR

public static final int UNPUBLISH_ERROR
Impossible to unpublish the tracing service

See Also:
Constant Field Values

SUBSCRIPTION_ERROR

public static final int SUBSCRIPTION_ERROR
Impossible to subscribe to the tracing service

See Also:
Constant Field Values

UNSUBSCRIPTION_ERROR

public static final int UNSUBSCRIPTION_ERROR
Impossible to unsubscribe from tracing service

See Also:
Constant Field Values

AUTHORIZATION_ERROR

public static final int AUTHORIZATION_ERROR
Unauthorized to do so

See Also:
Constant Field Values

MAX_TRACE_ERROR

public static final int MAX_TRACE_ERROR
Number of available trace error messages

See Also:
Constant Field Values

TraceErrors

public static final TraceError[] TraceErrors
Array of available trace error messages

Constructor Detail

TraceError

public TraceError(String name,
                  String description)
Constructor which creates a trace error message with the specified name and description

Parameters:
name - Identifier name of the error message
description - Human readable description of the error
Method Detail

getName

public String getName()
Returns the identifier name of the error message

Returns:
Name of the error

getDescription

public String getDescription()
Returns the description of the errormessage

Returns:
Description of the error


Copyright © 2012 GTI-IA. All Rights Reserved.