KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > security > ip > InvalidIPRangeException


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12

13 package org.jahia.security.ip;
14
15
16
17 /**
18  * This exception is used when an IP range is invalid.
19  *
20  * @author Fulco Houkes
21  * @version 1.0
22  */

23 public class InvalidIPRangeException extends Exception JavaDoc
24 {
25     /** Invalid IP range */
26     private String JavaDoc mIPRange = null;
27
28     //-------------------------------------------------------------------------
29
/**
30      * Default constructor.
31      */

32     public InvalidIPRangeException () {
33         super ("Invalid IP range.");
34     }
35
36     //-------------------------------------------------------------------------
37
/**
38      * Constructor.
39      *
40      * @param range
41      * String representation of the bad IP range.
42      */

43     public InvalidIPRangeException (String JavaDoc range) {
44         super ("Invalid IP range ["+range+"]");
45         mIPRange = range;
46     }
47
48
49     //-------------------------------------------------------------------------
50
/**
51      * Return the invalid IP range.
52      *
53      * @return
54      * Return the invalid IP range, might be <code>null</code>.
55      */

56     public String JavaDoc getIPRange () {
57         return mIPRange;
58     }
59 }
60
Popular Tags