| 1 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 2 | // Copyright (c) 2018 Saxonica Limited. |
| 3 | // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. |
| 4 | // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 5 | // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. |
| 6 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 7 | |
| 8 | package net.sf.saxon.expr.instruct; |
| 9 | |
| 10 | import net.sf.saxon.trans.XPathException; |
| 11 | |
| 12 | /** |
| 13 | * An exception thrown by xsl:message terminate="yes". |
| 14 | */ |
| 15 | |
| 16 | public class TerminationException extends XPathException { |
| 17 | |
| 18 | /** |
| 19 | * Construct a TerminationException |
| 20 | * |
| 21 | * @param message the text of the message to be output |
| 22 | */ |
| 23 | |
| 24 | public TerminationException(String message) { |
| 25 | super(message); |
| 26 | setErrorCode("XTMM9000"); |
| 27 | } |
| 28 | |
| 29 | } |