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.tools.sourceformatter;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    
019    /**
020     * @author Andr?? de Oliveira
021     * @author Hugo Huijser
022     */
023    public class SourceMismatchException extends PortalException {
024    
025            public SourceMismatchException(
026                    String fileName, String originalSource, String formattedSource) {
027    
028                    _fileName = fileName;
029                    _originalSource = originalSource;
030                    _formattedSource = formattedSource;
031            }
032    
033            public String getFileName() {
034                    return _fileName;
035            }
036    
037            public String getFormattedSource() {
038                    return _formattedSource;
039            }
040    
041            public String getOriginalSource() {
042                    return _originalSource;
043            }
044    
045            private final String _fileName;
046            private final String _formattedSource;
047            private final String _originalSource;
048    
049    }