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.kernel.exception;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     */
020    public class UserSmsException extends PortalException {
021    
022            /**
023             * @deprecated As of 7.0.0, replaced by the inner classes
024             */
025            @Deprecated
026            public UserSmsException() {
027            }
028    
029            /**
030             * @deprecated As of 7.0.0, replaced by the inner classes
031             */
032            @Deprecated
033            public UserSmsException(String msg) {
034                    super(msg);
035            }
036    
037            /**
038             * @deprecated As of 7.0.0, replaced by the inner classes
039             */
040            @Deprecated
041            public UserSmsException(String msg, Throwable cause) {
042                    super(msg, cause);
043            }
044    
045            /**
046             * @deprecated As of 7.0.0, replaced by the inner classes
047             */
048            @Deprecated
049            public UserSmsException(Throwable cause) {
050                    super(cause);
051            }
052    
053            public static class MustBeEmailAddress extends UserSmsException {
054    
055                    public MustBeEmailAddress(String smsSn) {
056                            super(String.format("SMS %s must be an email address", smsSn));
057    
058                            this.smsSn = smsSn;
059                    }
060    
061                    public final String smsSn;
062    
063            }
064    
065    }