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 {@code SimpleMethodSignature} string.</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 SimpleMethodSigFormatException extends IllegalArgumentException { 026 /** 027 * 028 */ 029 private static final long serialVersionUID = -7187385529111942307L; 030 private final String strSig; 031 public SimpleMethodSigFormatException(Object string_signature, String message) { 032 super(message + 033 ((string_signature == null) ? "" : ". Signature: " + string_signature.toString())); 034 strSig = ((string_signature == null) ? null : string_signature.toString()); 035 } 036 public SimpleMethodSigFormatException(Object string_signature) { 037 super((string_signature == null) ? "" : ". Signature: " + string_signature.toString()); 038 strSig = ((string_signature == null) ? null : string_signature.toString()); 039 } 040 public SimpleMethodSigFormatException(Object string_signature, String message, Throwable cause) { 041 super(message + 042 ((string_signature == null) ? "" : ". Signature: " + string_signature.toString())); 043 strSig = ((string_signature == null) ? null : string_signature.toString()); 044 } 045 public SimpleMethodSigFormatException(Object string_signature, Throwable cause) { 046 super((string_signature == null) ? "" : ". Signature: " + string_signature.toString()); 047 strSig = ((string_signature == null) ? null : string_signature.toString()); 048 } 049 public String getStringSignature() { 050 return strSig; 051 } 052}