/usr/share/doc/libosgi-compendium-java/api/org/osgi/service/dmt/DmtException.html is in libosgi-compendium-java-doc 5.0.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html>
<head>
<!-- Generated by javadoc -->
<title>DmtException</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DmtException";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</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">
<li><a href="../../../../org/osgi/service/dmt/DmtEventListener.html" title="interface in org.osgi.service.dmt"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/osgi/service/dmt/DmtException.html" target="_top">Frames</a></li>
<li><a href="DmtException.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></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>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field.summary">Field</a> | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.osgi.service.dmt</div>
<h2 title="Class DmtException" class="title">Class DmtException</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>java.lang.Throwable</li>
<li>
<ul class="inheritance">
<li>java.lang.Exception</li>
<li>
<ul class="inheritance">
<li>org.osgi.service.dmt.DmtException</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Serializable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">DmtException</span>
extends java.lang.Exception</pre>
<div class="block">Checked exception received when a DMT operation fails. Beside the exception
message, a <code>DmtException</code> always contains an error code (one of the
constants specified in this class), and may optionally contain the URI of the
related node, and information about the cause of the exception.
<p>
Some of the error codes defined in this class have a corresponding error code
defined in OMA DM, in these cases the name and numerical value from OMA DM is
used. Error codes without counterparts in OMA DM were given numbers from a
different range, starting from 1.
<p>
The cause of the exception (if specified) can either be a single
<code>Throwable</code> instance, or a list of such instances if several problems
occurred during the execution of a method. An example for the latter is the
<code>close</code> method of <code>DmtSession</code> that tries to close multiple
plugins, and has to report the exceptions of all failures.
<p>
Each constructor has two variants, one accepts a <code>String</code> node URI, the
other accepts a <code>String[]</code> node path. The former is used by the
DmtAdmin implementation, the latter by the plugins, who receive the node URI
as an array of segment names. The constructors are otherwise identical.
<p>
Getter methods are provided to retrieve the values of the additional
parameters, and the <code>printStackTrace(PrintWriter)</code> method is extended
to print the stack trace of all causing throwables as well.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../serialized-form.html#org.osgi.service.dmt.DmtException">Serialized Form</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#ALERT_NOT_ROUTED">ALERT_NOT_ROUTED</a></span></code>
<div class="block">An alert can not be sent from the device to the given principal.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#COMMAND_FAILED">COMMAND_FAILED</a></span></code>
<div class="block">The recipient encountered an error which prevented it from fulfilling the
request.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#COMMAND_NOT_ALLOWED">COMMAND_NOT_ALLOWED</a></span></code>
<div class="block">The requested command is not allowed on the target node.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#CONCURRENT_ACCESS">CONCURRENT_ACCESS</a></span></code>
<div class="block">An error occurred related to concurrent access of nodes.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#DATA_STORE_FAILURE">DATA_STORE_FAILURE</a></span></code>
<div class="block">An error related to the recipient data store occurred while processing
the request.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#FEATURE_NOT_SUPPORTED">FEATURE_NOT_SUPPORTED</a></span></code>
<div class="block">The requested command failed because an optional feature required by the
command is not supported.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#INVALID_URI">INVALID_URI</a></span></code>
<div class="block">The requested command failed because the target URI or node name is
<code>null</code> or syntactically invalid.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#LIMIT_EXCEEDED">LIMIT_EXCEEDED</a></span></code>
<div class="block">The requested operation failed because a specific limit was exceeded,
e.g.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#METADATA_MISMATCH">METADATA_MISMATCH</a></span></code>
<div class="block">Operation failed because of meta data restrictions.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#NODE_ALREADY_EXISTS">NODE_ALREADY_EXISTS</a></span></code>
<div class="block">The requested node creation operation failed because the target already
exists.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#NODE_NOT_FOUND">NODE_NOT_FOUND</a></span></code>
<div class="block">The requested target node was not found.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#PERMISSION_DENIED">PERMISSION_DENIED</a></span></code>
<div class="block">The requested command failed because the principal associated with the
session does not have adequate access control permissions (ACL) on the
target.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#REMOTE_ERROR">REMOTE_ERROR</a></span></code>
<div class="block">A device initiated remote operation failed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#ROLLBACK_FAILED">ROLLBACK_FAILED</a></span></code>
<div class="block">The rollback command was not completed successfully.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#SESSION_CREATION_TIMEOUT">SESSION_CREATION_TIMEOUT</a></span></code>
<div class="block">Creation of a session timed out because of another ongoing session.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#TRANSACTION_ERROR">TRANSACTION_ERROR</a></span></code>
<div class="block">A transaction-related error occurred in an atomic session.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#UNAUTHORIZED">UNAUTHORIZED</a></span></code>
<div class="block">The originator's authentication credentials specify a principal with
insufficient rights to complete the command.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#URI_TOO_LONG">URI_TOO_LONG</a></span></code>
<div class="block">The requested command failed because the target URI is too long for what
the recipient is able or willing to process.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#DmtException-java.lang.String:A-int-java.lang.String-">DmtException</a></span>(java.lang.String[] path,
int code,
java.lang.String message)</code>
<div class="block">Create an instance of the exception, specifying the target node as an
array of path segments.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#DmtException-java.lang.String:A-int-java.lang.String-java.lang.Throwable-">DmtException</a></span>(java.lang.String[] path,
int code,
java.lang.String message,
java.lang.Throwable cause)</code>
<div class="block">Create an instance of the exception, specifying the target node as an
array of path segments, and specifying the cause exception.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#DmtException-java.lang.String:A-int-java.lang.String-java.util.Vector-boolean-">DmtException</a></span>(java.lang.String[] path,
int code,
java.lang.String message,
java.util.Vector causes,
boolean fatal)</code>
<div class="block">Create an instance of the exception, specifying the target node as an
array of path segments, the list of cause exceptions, and whether the
exception is a fatal one.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#DmtException-java.lang.String-int-java.lang.String-">DmtException</a></span>(java.lang.String uri,
int code,
java.lang.String message)</code>
<div class="block">Create an instance of the exception.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#DmtException-java.lang.String-int-java.lang.String-java.lang.Throwable-">DmtException</a></span>(java.lang.String uri,
int code,
java.lang.String message,
java.lang.Throwable cause)</code>
<div class="block">Create an instance of the exception, specifying the cause exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#DmtException-java.lang.String-int-java.lang.String-java.util.Vector-boolean-">DmtException</a></span>(java.lang.String uri,
int code,
java.lang.String message,
java.util.Vector causes,
boolean fatal)</code>
<div class="block">Create an instance of the exception, specifying the list of cause
exceptions and whether the exception is a fatal one.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.lang.Throwable</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#getCause--">getCause</a></span>()</code>
<div class="block">Get the cause of this exception.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.lang.Throwable[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#getCauses--">getCauses</a></span>()</code>
<div class="block">Get all causes of this exception.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#getCode--">getCode</a></span>()</code>
<div class="block">Get the error code associated with this exception.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#getMessage--">getMessage</a></span>()</code>
<div class="block">Get the message associated with this exception.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#getURI--">getURI</a></span>()</code>
<div class="block">Get the node on which the failed DMT operation was issued.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#isFatal--">isFatal</a></span>()</code>
<div class="block">Check whether this exception is marked as fatal in the session.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/osgi/service/dmt/DmtException.html#printStackTrace-java.io.PrintStream-">printStackTrace</a></span>(java.io.PrintStream s)</code>
<div class="block">Prints the exception and its backtrace to the specified print stream.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Throwable">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Throwable</h3>
<code>addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="UNAUTHORIZED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>UNAUTHORIZED</h4>
<pre>public static final int UNAUTHORIZED</pre>
<div class="block">The originator's authentication credentials specify a principal with
insufficient rights to complete the command.
<p>
This status code is used as response to device originated sessions if the
remote management server cannot authorize the device to perform the
requested operation.
<p>
This error code corresponds to the OMA DM response status code 401
"Unauthorized".</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.UNAUTHORIZED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NODE_NOT_FOUND">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NODE_NOT_FOUND</h4>
<pre>public static final int NODE_NOT_FOUND</pre>
<div class="block">The requested target node was not found. No indication is given as to
whether this is a temporary or permanent condition, unless otherwise
noted.
<p>
This is only used when the requested node name is valid, otherwise the
more specific error codes <a href="../../../../org/osgi/service/dmt/DmtException.html#URI_TOO_LONG"><code>URI_TOO_LONG</code></a> or <a href="../../../../org/osgi/service/dmt/DmtException.html#INVALID_URI"><code>INVALID_URI</code></a>
are used. This error code corresponds to the OMA DM response status code
404 "Not Found".</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.NODE_NOT_FOUND">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="COMMAND_NOT_ALLOWED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_NOT_ALLOWED</h4>
<pre>public static final int COMMAND_NOT_ALLOWED</pre>
<div class="block">The requested command is not allowed on the target node. This includes
the following situations:
<ul>
<li>an interior node operation is requested for a leaf node, or vice
versa (e.g. trying to retrieve the children of a leaf node)</li>
<li>an attempt is made to create a node where the parent is a leaf node</li>
<li>an attempt is made to rename or delete the root node of the tree</li>
<li>an attempt is made to rename or delete the root node of the session</li>
<li>a write operation (other than setting the ACL) is performed in a
non-atomic write session on a node provided by a plugin that is read-only
or does not support non-atomic writing</li>
<li>a node is copied to its descendant</li>
<li>the ACL of the root node is changed not to include Add rights for all
principals</li>
</ul>
<p>
This error code corresponds to the OMA DM response status code 405
"Command not allowed".</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.COMMAND_NOT_ALLOWED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="FEATURE_NOT_SUPPORTED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FEATURE_NOT_SUPPORTED</h4>
<pre>public static final int FEATURE_NOT_SUPPORTED</pre>
<div class="block">The requested command failed because an optional feature required by the
command is not supported. For example, opening an atomic session might
return this error code if the DmtAdmin implementation does not support
transactions. Similarly, accessing the optional node properties (Title,
Timestamp, Version, Size) might not succeed if either the DmtAdmin
implementation or the underlying plugin does not support the property.
<p>
When getting or setting values for interior nodes (an optional
optimization feature), a plugin can use this error code to indicate that
the given interior node does not support values.
<p>
This error code corresponds to the OMA DM response status code 406
"Optional feature not supported".</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.FEATURE_NOT_SUPPORTED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="LIMIT_EXCEEDED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LIMIT_EXCEEDED</h4>
<pre>public static final int LIMIT_EXCEEDED</pre>
<div class="block">The requested operation failed because a specific limit was exceeded,
e.g. if a requested resource exceeds a size limit.
<p>
This error code corresponds to the OMA DM response status code 413
"Request entity too large".</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>2.0</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.LIMIT_EXCEEDED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="URI_TOO_LONG">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>URI_TOO_LONG</h4>
<pre>public static final int URI_TOO_LONG</pre>
<div class="block">The requested command failed because the target URI is too long for what
the recipient is able or willing to process.
<p>
This error code corresponds to the OMA DM response status code 414
"URI too long".</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd>"OSGi Service Platform, Mobile Specification Release 4",
<a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.URI_TOO_LONG">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NODE_ALREADY_EXISTS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NODE_ALREADY_EXISTS</h4>
<pre>public static final int NODE_ALREADY_EXISTS</pre>
<div class="block">The requested node creation operation failed because the target already
exists. This can occur if the node is created directly (with one of the
<code>create...</code> methods), or indirectly (during a <code>copy</code>
operation).
<p>
This error code corresponds to the OMA DM response status code 418
"Already exists".</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.NODE_ALREADY_EXISTS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="PERMISSION_DENIED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PERMISSION_DENIED</h4>
<pre>public static final int PERMISSION_DENIED</pre>
<div class="block">The requested command failed because the principal associated with the
session does not have adequate access control permissions (ACL) on the
target. This can only appear in case of remote sessions, i.e. if the
session is associated with an authenticated principal.
<p>
This error code corresponds to the OMA DM response status code 425
"Permission denied".</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.PERMISSION_DENIED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="COMMAND_FAILED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_FAILED</h4>
<pre>public static final int COMMAND_FAILED</pre>
<div class="block">The recipient encountered an error which prevented it from fulfilling the
request.
<p>
This error code is only used in situations not covered by any of the
other error codes that a method may use. Some methods specify more
specific error situations for this code, but it can generally be used for
any unexpected condition that causes the command to fail.
<p>
This error code corresponds to the OMA DM response status code 500
"Command Failed".</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.COMMAND_FAILED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="DATA_STORE_FAILURE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DATA_STORE_FAILURE</h4>
<pre>public static final int DATA_STORE_FAILURE</pre>
<div class="block">An error related to the recipient data store occurred while processing
the request. This error code may be thrown by any of the methods
accessing the tree, but whether it is really used depends on the
implementation, and the data store it uses.
<p>
This error code corresponds to the OMA DM response status code 510
"Data store failure".</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.DATA_STORE_FAILURE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ROLLBACK_FAILED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ROLLBACK_FAILED</h4>
<pre>public static final int ROLLBACK_FAILED</pre>
<div class="block">The rollback command was not completed successfully. The tree might be in
an inconsistent state after this error.
<p>
This error code corresponds to the OMA DM response status code 516
"Atomic roll back failed".</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.ROLLBACK_FAILED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="REMOTE_ERROR">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>REMOTE_ERROR</h4>
<pre>public static final int REMOTE_ERROR</pre>
<div class="block">A device initiated remote operation failed. This is used when the
protocol adapter fails to send an alert for any reason.
<p>
Alert routing errors (that occur while looking for the proper protocol
adapter to use) are indicated by <a href="../../../../org/osgi/service/dmt/DmtException.html#ALERT_NOT_ROUTED"><code>ALERT_NOT_ROUTED</code></a>, this code is
only for errors encountered while sending the routed alert. This error
code does not correspond to any OMA DM response status code. It should be
translated to the code 500 "Command Failed" when transferring
over OMA DM.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.REMOTE_ERROR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="METADATA_MISMATCH">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>METADATA_MISMATCH</h4>
<pre>public static final int METADATA_MISMATCH</pre>
<div class="block">Operation failed because of meta data restrictions. This covers any
attempted deviation from the parameters defined by the <code>MetaNode</code>
objects of the affected nodes, for example in the following situations:
<ul>
<li>creating, deleting or renaming a permanent node, or modifying its
type</li>
<li>creating an interior node where the meta-node defines it as a leaf,
or vice versa</li>
<li>any operation on a node which does not have the required access type
(e.g. executing a node that lacks the <code>MetaNode.CMD_EXECUTE</code> access
type)</li>
<li>any node creation or deletion that would violate the cardinality
constraints</li>
<li>any leaf node value setting that would violate the allowed formats,
values, mime types, etc.</li>
<li>any node creation that would violate the allowed node names</li>
</ul>
<p>
This error code can also be used to indicate any other meta data
violation, even if it cannot be described by the <code>MetaNode</code> class.
For example, detecting a multi-node constraint violation while committing
an atomic session should result in this error.
<p>
This error code does not correspond to any OMA DM response status code.
It should be translated to the code 405 "Command not allowed"
when transferring over OMA DM.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.METADATA_MISMATCH">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="INVALID_URI">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>INVALID_URI</h4>
<pre>public static final int INVALID_URI</pre>
<div class="block">The requested command failed because the target URI or node name is
<code>null</code> or syntactically invalid. This covers the following cases:
<ul>
<li>the URI or node name ends with the '\' or '/' character</li>
<li>the URI is an empty string (only invalid if the method does not
accept relative URIs)</li>
<li>the URI contains the segment "<code>.</code>" at a position
other than the beginning of the URI</li>
<li>the node name is "<code>..</code>" or the URI contains such a
segment</li>
<li>the node name contains an unescaped '/' character</li>
</ul>
<p>
See the <a href="../../../../org/osgi/service/dmt/Uri.html#encode-java.lang.String-"><code>Uri.encode(String)</code></a> method for support on escaping invalid
characters in a URI.
<p>
This code is only used if the URI or node name does not match any of the
criteria for <a href="../../../../org/osgi/service/dmt/DmtException.html#URI_TOO_LONG"><code>URI_TOO_LONG</code></a>. This error code does not correspond
to any OMA DM response status code. It should be translated to the code
404 "Not Found" when transferring over OMA DM.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.INVALID_URI">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="CONCURRENT_ACCESS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CONCURRENT_ACCESS</h4>
<pre>public static final int CONCURRENT_ACCESS</pre>
<div class="block">An error occurred related to concurrent access of nodes. This can happen
for example if a configuration node was deleted directly through the
Configuration Admin service, while the node was manipulated via the tree.
<p>
This error code does not correspond to any OMA DM response status code.
It should be translated to the code 500 "Command Failed" when
transferring over OMA DM.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.CONCURRENT_ACCESS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ALERT_NOT_ROUTED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ALERT_NOT_ROUTED</h4>
<pre>public static final int ALERT_NOT_ROUTED</pre>
<div class="block">An alert can not be sent from the device to the given principal. This can
happen if there is no Remote Alert Sender willing to forward the alert to
the given principal, or if no principal was given and the DmtAdmin did
not find an appropriate default destination.
<p>
This error code does not correspond to any OMA DM response status code.
It should be translated to the code 500 "Command Failed" when
transferring over OMA DM.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.ALERT_NOT_ROUTED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="TRANSACTION_ERROR">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TRANSACTION_ERROR</h4>
<pre>public static final int TRANSACTION_ERROR</pre>
<div class="block">A transaction-related error occurred in an atomic session. This error is
caused by one of the following situations:
<ul>
<li>an updating method within an atomic session can not be executed
because the underlying plugin is read-only or does not support atomic
writing</li>
<li>a commit operation at the end of an atomic session failed because one
of the underlying plugins failed to close</li>
</ul>
The latter case may leave the tree in an inconsistent state due to the
lack of a two-phase commit system, see <a href="../../../../org/osgi/service/dmt/DmtSession.html#commit--"><code>DmtSession.commit()</code></a> for
details.
<p>
This error code does not correspond to any OMA DM response status code.
It should be translated to the code 500 "Command Failed" when
transferring over OMA DM.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.TRANSACTION_ERROR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="SESSION_CREATION_TIMEOUT">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SESSION_CREATION_TIMEOUT</h4>
<pre>public static final int SESSION_CREATION_TIMEOUT</pre>
<div class="block">Creation of a session timed out because of another ongoing session. The
length of time while the DmtAdmin waits for the blocking session(s) to
finish is implementation dependent.
<p>
This error code does not correspond to any OMA DM response status code.
OMA has several status codes related to timeout, but these are meant to
be used when a request times out, not if a session can not be
established. This error code should be translated to the code 500
"Command Failed" when transferring over OMA DM.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtException.SESSION_CREATION_TIMEOUT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="DmtException-java.lang.String-int-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtException</h4>
<pre>public DmtException(java.lang.String uri,
int code,
java.lang.String message)</pre>
<div class="block">Create an instance of the exception. The <code>uri</code> and <code>message</code>
parameters are optional. No originating exception is specified.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>uri</code> - the node on which the failed DMT operation was issued, or
<code>null</code> if the operation is not associated with a node</dd>
<dd><code>code</code> - the error code of the failure</dd>
<dd><code>message</code> - the message associated with the exception, or <code>null</code>
if there is no error message</dd>
</dl>
</li>
</ul>
<a name="DmtException-java.lang.String-int-java.lang.String-java.lang.Throwable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtException</h4>
<pre>public DmtException(java.lang.String uri,
int code,
java.lang.String message,
java.lang.Throwable cause)</pre>
<div class="block">Create an instance of the exception, specifying the cause exception. The
<code>uri</code>, <code>message</code> and <code>cause</code> parameters are optional.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>uri</code> - the node on which the failed DMT operation was issued, or
<code>null</code> if the operation is not associated with a node</dd>
<dd><code>code</code> - the error code of the failure</dd>
<dd><code>message</code> - the message associated with the exception, or <code>null</code>
if there is no error message</dd>
<dd><code>cause</code> - the originating exception, or <code>null</code> if there is no
originating exception</dd>
</dl>
</li>
</ul>
<a name="DmtException-java.lang.String-int-java.lang.String-java.util.Vector-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtException</h4>
<pre>public DmtException(java.lang.String uri,
int code,
java.lang.String message,
java.util.Vector causes,
boolean fatal)</pre>
<div class="block">Create an instance of the exception, specifying the list of cause
exceptions and whether the exception is a fatal one. This constructor is
meant to be used by plugins wishing to indicate that a serious error
occurred which should invalidate the ongoing atomic session. The
<code>uri</code>, <code>message</code> and <code>causes</code> parameters are optional.
<p>
If a fatal exception is thrown, no further business methods will be
called on the originator plugin. In case of atomic sessions, all other
open plugins will be rolled back automatically, except if the fatal
exception was thrown during commit.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>uri</code> - the node on which the failed DMT operation was issued, or
<code>null</code> if the operation is not associated with a node</dd>
<dd><code>code</code> - the error code of the failure</dd>
<dd><code>message</code> - the message associated with the exception, or <code>null</code>
if there is no error message</dd>
<dd><code>causes</code> - the list of originating exceptions, or empty list or
<code>null</code> if there are no originating exceptions</dd>
<dd><code>fatal</code> - whether the exception is fatal</dd>
</dl>
</li>
</ul>
<a name="DmtException-java.lang.String:A-int-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtException</h4>
<pre>public DmtException(java.lang.String[] path,
int code,
java.lang.String message)</pre>
<div class="block">Create an instance of the exception, specifying the target node as an
array of path segments. This method behaves in exactly the same way as if
the path was given as a URI string.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>path</code> - the path of the node on which the failed DMT operation was
issued, or <code>null</code> if the operation is not associated with a
node</dd>
<dd><code>code</code> - the error code of the failure</dd>
<dd><code>message</code> - the message associated with the exception, or <code>null</code>
if there is no error message</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/osgi/service/dmt/DmtException.html#DmtException-java.lang.String-int-java.lang.String-"><code>DmtException(String, int, String)</code></a></dd>
</dl>
</li>
</ul>
<a name="DmtException-java.lang.String:A-int-java.lang.String-java.lang.Throwable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtException</h4>
<pre>public DmtException(java.lang.String[] path,
int code,
java.lang.String message,
java.lang.Throwable cause)</pre>
<div class="block">Create an instance of the exception, specifying the target node as an
array of path segments, and specifying the cause exception. This method
behaves in exactly the same way as if the path was given as a URI string.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>path</code> - the path of the node on which the failed DMT operation was
issued, or <code>null</code> if the operation is not associated with a
node</dd>
<dd><code>code</code> - the error code of the failure</dd>
<dd><code>message</code> - the message associated with the exception, or <code>null</code>
if there is no error message</dd>
<dd><code>cause</code> - the originating exception, or <code>null</code> if there is no
originating exception</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/osgi/service/dmt/DmtException.html#DmtException-java.lang.String-int-java.lang.String-java.lang.Throwable-"><code>DmtException(String, int, String, Throwable)</code></a></dd>
</dl>
</li>
</ul>
<a name="DmtException-java.lang.String:A-int-java.lang.String-java.util.Vector-boolean-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DmtException</h4>
<pre>public DmtException(java.lang.String[] path,
int code,
java.lang.String message,
java.util.Vector causes,
boolean fatal)</pre>
<div class="block">Create an instance of the exception, specifying the target node as an
array of path segments, the list of cause exceptions, and whether the
exception is a fatal one. This method behaves in exactly the same way as
if the path was given as a URI string.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>path</code> - the path of the node on which the failed DMT operation was
issued, or <code>null</code> if the operation is not associated with a
node</dd>
<dd><code>code</code> - the error code of the failure</dd>
<dd><code>message</code> - the message associated with the exception, or <code>null</code>
if there is no error message</dd>
<dd><code>causes</code> - the list of originating exceptions, or empty list or
<code>null</code> if there are no originating exceptions</dd>
<dd><code>fatal</code> - whether the exception is fatal</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/osgi/service/dmt/DmtException.html#DmtException-java.lang.String-int-java.lang.String-java.util.Vector-boolean-"><code>DmtException(String, int, String, Vector, boolean)</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getURI--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getURI</h4>
<pre>public java.lang.String getURI()</pre>
<div class="block">Get the node on which the failed DMT operation was issued. Some
operations like <code>DmtSession.close()</code> don't require an URI, in this
case this method returns <code>null</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the URI of the node, or <code>null</code></dd>
</dl>
</li>
</ul>
<a name="getCode--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCode</h4>
<pre>public int getCode()</pre>
<div class="block">Get the error code associated with this exception. Most of the error
codes within this exception correspond to OMA DM error codes.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the error code</dd>
</dl>
</li>
</ul>
<a name="getMessage--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMessage</h4>
<pre>public java.lang.String getMessage()</pre>
<div class="block">Get the message associated with this exception. The returned string also
contains the associated URI (if any) and the exception code. The
resulting message has the following format (parts in square brackets are
only included if the field inside them is not <code>null</code>):
<pre>
<exception_code>[: '<uri>'][: <error_message>]
</pre></div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>getMessage</code> in class <code>java.lang.Throwable</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the error message in the format described above</dd>
</dl>
</li>
</ul>
<a name="getCause--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCause</h4>
<pre>public java.lang.Throwable getCause()</pre>
<div class="block">Get the cause of this exception. Returns non-<code>null</code>, if this
exception is caused by one or more other exceptions (like a
<code>NullPointerException</code> in a DmtPlugin). If there are more than one
cause exceptions, the first one is returned.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>getCause</code> in class <code>java.lang.Throwable</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the cause of this exception, or <code>null</code> if no cause was
given</dd>
</dl>
</li>
</ul>
<a name="getCauses--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCauses</h4>
<pre>public java.lang.Throwable[] getCauses()</pre>
<div class="block">Get all causes of this exception. Returns the causing exceptions in an
array. If no cause was specified, an empty array is returned.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the list of causes of this exception</dd>
</dl>
</li>
</ul>
<a name="isFatal--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isFatal</h4>
<pre>public boolean isFatal()</pre>
<div class="block">Check whether this exception is marked as fatal in the session. Fatal
exceptions trigger an automatic rollback of atomic sessions.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>whether the exception is marked as fatal</dd>
</dl>
</li>
</ul>
<a name="printStackTrace-java.io.PrintStream-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>printStackTrace</h4>
<pre>public void printStackTrace(java.io.PrintStream s)</pre>
<div class="block">Prints the exception and its backtrace to the specified print stream. Any
causes that were specified for this exception are also printed, together
with their backtraces.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>printStackTrace</code> in class <code>java.lang.Throwable</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>s</code> - <code>PrintStream</code> to use for output</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</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">
<li><a href="../../../../org/osgi/service/dmt/DmtEventListener.html" title="interface in org.osgi.service.dmt"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/osgi/service/dmt/DmtException.html" target="_top">Frames</a></li>
<li><a href="DmtException.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All 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>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field.summary">Field</a> | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|