001/*license*\ 002 Codelet 003 004 Copyright (c) 2014, Jeff Epstein (aliteralmind __DASH__ github __AT__ yahoo __DOT__ com) 005 006 This software is dual-licensed under the: 007 - Lesser General Public License (LGPL) version 3.0 or, at your option, any later version; 008 - Apache Software License (ASL) version 2.0. 009 010 Either license may be applied at your discretion. More information may be found at 011 - http://en.wikipedia.org/wiki/Multi-licensing. 012 013 The text of both licenses is available in the root directory of this project, under the names "LICENSE_lgpl-3.0.txt" and "LICENSE_asl-2.0.txt". The latest copies may be downloaded at: 014 - LGPL 3.0: https://www.gnu.org/licenses/lgpl-3.0.txt 015 - ASL 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt 016\*license*/ 017package com.github.aliteralmind.codelet.simplesig; 018/** 019 <p>Indicates a badly formatted search term.</p> 020 021 * @since 0.1.0 022 * @author Copyright (C) 2014, Jeff Epstein ({@code aliteralmind __DASH__ github __AT__ yahoo __DOT__ com}), dual-licensed under the LGPL (version 3.0 or later) or the ASL (version 2.0). See source code for details. <a href="http://codelet.aliteralmind.com">{@code http://codelet.aliteralmind.com}</a>, <a href="https://github.com/aliteralmind/codelet">{@code https://github.com/aliteralmind/codelet}</a> 023 024 **/ 025public class SimpleParamSigSearchTermFormatException extends IllegalArgumentException { 026 /** 027 * 028 */ 029 private static final long serialVersionUID = -1949647132297559513L; 030 private final String strSig; 031 public SimpleParamSigSearchTermFormatException(String search_term, String message) { 032 super(message + 033 ((search_term == null) ? "" : ". Signature: " + search_term)); 034 strSig = search_term; 035 } 036 public SimpleParamSigSearchTermFormatException(String search_term) { 037 super((search_term == null) ? "" : ". Signature: " + search_term); 038 strSig = search_term; 039 } 040 public SimpleParamSigSearchTermFormatException(String search_term, String message, Throwable cause) { 041 super(message + 042 ((search_term == null) ? "" : ". Signature: " + search_term)); 043 strSig = search_term; 044 } 045 public SimpleParamSigSearchTermFormatException(String search_term, Throwable cause) { 046 super((search_term == null) ? "" : ". Signature: " + search_term); 047 strSig = search_term; 048 } 049 public String getStringSignature() { 050 return strSig; 051 } 052}