blob: fb79b9156d7f69a4af472269039cd85329a6ebb1 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.4) on Fri Sep 20 12:10:30 CEST 2019 -->
<title>LocalizedException (Apache SIS 1.0 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2019-09-20">
<meta name="keywords" content="org.apache.sis.util.LocalizedException interface">
<meta name="keywords" content="getMessage()">
<meta name="keywords" content="getLocalizedMessage()">
<meta name="keywords" content="getInternationalMessage()">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../sis.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="LocalizedException (Apache SIS 1.0 API)";
}
}
catch(err) {
}
//-->
var data = {"i0":6,"i1":6,"i2":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = false;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/LocalizedException.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.sis.util</a></div>
<h2 title="Interface LocalizedException" class="title">Interface LocalizedException</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><code><a href="../storage/ConcurrentReadException.html" title="class in org.apache.sis.storage">Concurrent­Read­Exception</a></code>, <code><a href="../storage/ConcurrentWriteException.html" title="class in org.apache.sis.storage">Concurrent­Write­Exception</a></code>, <code><a href="../storage/DataStoreClosedException.html" title="class in org.apache.sis.storage">Data­Store­Closed­Exception</a></code>, <code><a href="../storage/DataStoreContentException.html" title="class in org.apache.sis.storage">Data­Store­Content­Exception</a></code>, <code><a href="../storage/DataStoreException.html" title="class in org.apache.sis.storage">Data­Store­Exception</a></code>, <code><a href="../storage/DataStoreReferencingException.html" title="class in org.apache.sis.storage">Data­Store­Referencing­Exception</a></code>, <code><a href="../storage/ForwardOnlyStorageException.html" title="class in org.apache.sis.storage">Forward­Only­Storage­Exception</a></code>, <code><a href="../storage/IllegalFeatureTypeException.html" title="class in org.apache.sis.storage">Illegal­Feature­Type­Exception</a></code>, <code><a href="../storage/IllegalNameException.html" title="class in org.apache.sis.storage">Illegal­Name­Exception</a></code>, <code><a href="../storage/IllegalOpenParameterException.html" title="class in org.apache.sis.storage">Illegal­Open­Parameter­Exception</a></code>, <code><a href="../storage/InternalDataStoreException.html" title="class in org.apache.sis.storage">Internal­Data­Store­Exception</a></code>, <code><a href="../storage/ReadOnlyStorageException.html" title="class in org.apache.sis.storage">Read­Only­Storage­Exception</a></code>, <code><a href="../io/wkt/UnparsableObjectException.html" title="class in org.apache.sis.io.wkt">Unparsable­Object­Exception</a></code>, <code><a href="../storage/UnsupportedQueryException.html" title="class in org.apache.sis.storage">Unsupported­Query­Exception</a></code>, <code><a href="../storage/UnsupportedStorageException.html" title="class in org.apache.sis.storage">Unsupported­Storage­Exception</a></code></dd>
</dl>
<hr>
<pre>public interface <span class="typeNameLabel">LocalizedException</span></pre>
<div class="block">An exception which can produce an error message in the client locale.
Exceptions implementing this interface apply the following policy:
<ul>
<li><a href="#getMessage()"><code>get­Message()</code></a> returns the message in the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true#getDefault()" title="class or interface in java.util" class="externalLink">default locale</a>.
In a client-server architecture, this is often the locale on the server side.</li>
<li><a href="#getLocalizedMessage()"><code>get­Localized­Message()</code></a> returns the message in a locale that depends on the context
in which the exception has been thrown. This is often the locale used by a <a href="https://docs.oracle.com/javase/8/docs/api/java/text/Format.html?is-external=true" title="class or interface in java.text" class="externalLink"><code>Format</code></a>
or <a href="../storage/DataStore.html" title="class in org.apache.sis.storage"><code>Data­Store</code></a> instance,
and can be presumed to be the locale on the client side.</li>
<li><a href="#getInternationalMessage()"><code>get­International­Message()</code></a> may return the message in arbitrary locale (optional operation).
This method is specific to Apache SIS.</li>
</ul>
<div class="note"><b>Example:</b>
if an error occurred while a Japanese client connected to an European server, the localized message may be sent
to the client in Japanese language while the same error may be logged on the server side in the French language.
This allows system administrator to analyze the issue without the need to understand client's language.</div>
The above policy is applied on a <em>best-effort</em> basis only. For example exceptions that
do not implement <code>Localized­Exception</code> may use any locale (not necessarily the default one),
and <code>Localized­Exception</code> used as <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true#%3Cinit%3E(java.lang.Throwable)" title="class or interface in java.lang" class="externalLink">wrappers</a> around
other exception usually lost their localization capability.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>0.8</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Exceptions.html#getLocalizedMessage(java.lang.Throwable,java.util.Locale)"><code>Exceptions​.get­Localized­Message(Throwable, Locale)</code></a>,
<a href="../storage/DataStore.html#setLocale(java.util.Locale)"><code>Data­Store​.set­Locale(Locale)</code></a></dd>
<p><font size="-1">Defined in the <code>sis-utility</code> module</font></p>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/InternationalString.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink">InternationalString</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInternationalMessage()">getInternationalMessage</a></span>()</code></th>
<td class="colLast">
<div class="block">If this exception is capable to return the message in various locales, returns that message.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLocalizedMessage()">getLocalizedMessage</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the message in the locale that depends on the context in which this exception has been thrown.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMessage()">getMessage</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the message in the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true#getDefault()" title="class or interface in java.util" class="externalLink">default locale</a>.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="getMessage()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMessage</h4>
<pre class="methodSignature"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;getMessage()</pre>
<div class="block">Returns the message in the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true#getDefault()" title="class or interface in java.util" class="externalLink">default locale</a>.
In a client-server architecture, this is usually the locale on the server side.
This is the recommended language for logging messages to be read by system administrators.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the exception message in the JVM <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true#getDefault()" title="class or interface in java.util" class="externalLink">default locale</a>.</dd>
</dl>
</li>
</ul>
<a id="getLocalizedMessage()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLocalizedMessage</h4>
<pre class="methodSignature"><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;getLocalizedMessage()</pre>
<div class="block">Returns the message in the locale that depends on the context in which this exception has been thrown.
For example it may be the local of a client application connected to a distant server.
This is the recommended language to show in widgets.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the exception message in the locale of a service configured for a particular client.</dd>
</dl>
</li>
</ul>
<a id="getInternationalMessage()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getInternationalMessage</h4>
<pre class="methodSignature"><a href="http://www.geoapi.org/3.0/javadoc/org/opengis/util/InternationalString.html?is-external=true" title="class or interface in org.opengis.util" class="externalLink">InternationalString</a>&nbsp;getInternationalMessage()</pre>
<div class="block">If this exception is capable to return the message in various locales, returns that message.
Otherwise returns <code>null</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the exception message, or <code>null</code> if this exception can not produce international message.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/LocalizedException.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2010&#x2013;2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>