001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.exception; 016 017 import com.liferay.portal.kernel.exception.PortalException; 018 019 /** 020 * @author Brian Wing Shun Chan 021 */ 022 public class UserSmsException extends PortalException { 023 024 /** 025 * @deprecated As of 7.0.0, replaced by the inner classes 026 */ 027 @Deprecated 028 public UserSmsException() { 029 } 030 031 /** 032 * @deprecated As of 7.0.0, replaced by the inner classes 033 */ 034 @Deprecated 035 public UserSmsException(String msg) { 036 super(msg); 037 } 038 039 /** 040 * @deprecated As of 7.0.0, replaced by the inner classes 041 */ 042 @Deprecated 043 public UserSmsException(String msg, Throwable cause) { 044 super(msg, cause); 045 } 046 047 /** 048 * @deprecated As of 7.0.0, replaced by the inner classes 049 */ 050 @Deprecated 051 public UserSmsException(Throwable cause) { 052 super(cause); 053 } 054 055 public static class MustBeEmailAddress extends UserSmsException { 056 057 public MustBeEmailAddress(String smsSn) { 058 super(String.format("SMS %s must be an email address", smsSn)); 059 060 this.smsSn = smsSn; 061 } 062 063 public final String smsSn; 064 065 } 066 067 }