| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| SyncException |
|
| 1.0;1 |
| 1 | /** | |
| 2 | * Copyright 2008 WebPhotos | |
| 3 | * | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | /* | |
| 17 | * SyncException.java | |
| 18 | * | |
| 19 | * Created on 23 de Maio de 2006, 11:46 | |
| 20 | * | |
| 21 | * To change this template, choose Tools | Template Manager | |
| 22 | * and open the template in the editor. | |
| 23 | */ | |
| 24 | ||
| 25 | package net.sf.webphotos.sync; | |
| 26 | ||
| 27 | /** | |
| 28 | * Exceção de sincronização. | |
| 29 | * Herda a classe {@link java.lang.Exception Exception} e trabalha as exceções | |
| 30 | * através dela. | |
| 31 | * @author guilherme | |
| 32 | */ | |
| 33 | public class SyncException extends java.lang.Exception { | |
| 34 | ||
| 35 | /** | |
| 36 | * Cria uma nova instância de <code>SyncException</code> fazendo uma | |
| 37 | * chamada a classe base. | |
| 38 | */ | |
| 39 | public SyncException() { | |
| 40 | 0 | super(); |
| 41 | 0 | } |
| 42 | ||
| 43 | ||
| 44 | /** | |
| 45 | * Cria uma nova instância de <code>SyncException</code> | |
| 46 | * empilhando outra exceção. | |
| 47 | * @param e Uma exceção. | |
| 48 | */ | |
| 49 | public SyncException(Exception e) { | |
| 50 | 0 | super(e.getMessage()); |
| 51 | 0 | initCause(e.getCause()); |
| 52 | 0 | setStackTrace(e.getStackTrace()); |
| 53 | 0 | } |
| 54 | ||
| 55 | ||
| 56 | /** | |
| 57 | * Cria uma nova instância de <code>SyncException</code> fazendo uma | |
| 58 | * chamada a classe base e especificando uma mensagem. | |
| 59 | * @param msg Mensagem detalhada. | |
| 60 | */ | |
| 61 | public SyncException(String msg) { | |
| 62 | 0 | super(msg); |
| 63 | 0 | } |
| 64 | } |