2 * Copyright (C) 2017 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.api
.service
.exception
;
11 import java
.util
.ArrayList
;
12 import java
.util
.List
;
15 * @author a.kohlbecker
19 @SuppressWarnings("serial")
20 public class RegistrationValidationException
extends Exception
{
22 List
<String
> problems
= new ArrayList
<>();
27 public RegistrationValidationException(String message
, List
<String
> problems
) {
29 this.problems
= problems
;
33 public String
getMessage() {
34 StringBuffer sb
= new StringBuffer(super.getMessage()).append(" - Problems:");
35 problems
.forEach(p
-> sb
.append("- ").append(p
).append("\n"));
39 public List
<String
> getProblems() {