KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > exceptions > services > ServiceNotFoundException


1 // $Id: ServiceNotFoundException.java 1296 2002-08-08 13:42:01Z shuber $
2
//
3
//
4
// ____.
5
// __/\ ______| |__/\. _______
6
// __ .____| | \ | +----+ \
7
// _______| /--| | | - \ _ | : - \_________
8
// \\______: :---| : : | : | \________>
9
// |__\---\_____________:______: :____|____:_____\
10
// /_____|
11
//
12
// . . . i n j a h i a w e t r u s t . . .
13
//
14

15
16 package org.jahia.exceptions.services;
17
18 import org.jahia.exceptions.JahiaException;
19
20 /**
21  * This exception is raised when a specific service instance cannot be found
22  * in the services registry.
23  *
24  * @author Fulco Houkes
25  * @version 1.0
26  */

27 public class ServiceNotFoundException extends JahiaException
28 {
29     private String JavaDoc mServiceName;
30
31
32     //-------------------------------------------------------------------------
33
/** Default constructor
34      *
35      * @param name
36      * The service name that could not be found.
37      */

38     public ServiceNotFoundException (String JavaDoc name)
39     {
40         super ("Unavailable service.",
41                "Service [" + name + "] is not avaliable or initialized.",
42                SERVICE_ERROR, CRITICAL_SEVERITY);
43
44         mServiceName = name;
45     }
46
47
48     //-------------------------------------------------------------------------
49
/**
50      * Return the service name that could not be found.
51      *
52      * @return
53      * The service name.
54      */

55     public final String JavaDoc getServiceName () {
56         return mServiceName;
57     }
58
59 }
60
Popular Tags