/usr/share/doc/libosgi-compendium-java/api/info/dmtree/DmtException.html is in libosgi-compendium-java-doc 4.3.0-1.
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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_23) on Wed Nov 09 19:45:53 UTC 2011 -->
<TITLE>
DmtException
</TITLE>
<META NAME="date" CONTENT="2011-11-09">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DmtException";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../info/dmtree/DmtEventListener.html" title="interface in info.dmtree"><B>PREV CLASS</B></A>
<A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?info/dmtree/DmtException.html" target="_top"><B>FRAMES</B></A>
<A HREF="DmtException.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
info.dmtree</FONT>
<BR>
Class DmtException</H2>
<PRE>
java.lang.Object
<IMG SRC="../../resources/inherit.gif" ALT="extended by ">java.lang.Throwable
<IMG SRC="../../resources/inherit.gif" ALT="extended by ">java.lang.Exception
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>info.dmtree.DmtException</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>DmtException</B><DT>extends java.lang.Exception</DL>
</PRE>
<P>
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.
<P>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#info.dmtree.DmtException">Serialized Form</A></DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#ALERT_NOT_ROUTED">ALERT_NOT_ROUTED</A></B></CODE>
<BR>
An alert can not be sent from the device to the given principal.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#COMMAND_FAILED">COMMAND_FAILED</A></B></CODE>
<BR>
The recipient encountered an error which prevented it from fulfilling the
request.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#COMMAND_NOT_ALLOWED">COMMAND_NOT_ALLOWED</A></B></CODE>
<BR>
The requested command is not allowed on the target node.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#CONCURRENT_ACCESS">CONCURRENT_ACCESS</A></B></CODE>
<BR>
An error occurred related to concurrent access of nodes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#DATA_STORE_FAILURE">DATA_STORE_FAILURE</A></B></CODE>
<BR>
An error related to the recipient data store occurred while processing
the request.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#FEATURE_NOT_SUPPORTED">FEATURE_NOT_SUPPORTED</A></B></CODE>
<BR>
The requested command failed because an optional feature required by the
command is not supported.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#INVALID_URI">INVALID_URI</A></B></CODE>
<BR>
The requested command failed because the target URI or node name is
<code>null</code> or syntactically invalid.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#METADATA_MISMATCH">METADATA_MISMATCH</A></B></CODE>
<BR>
Operation failed because of meta data restrictions.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#NODE_ALREADY_EXISTS">NODE_ALREADY_EXISTS</A></B></CODE>
<BR>
The requested node creation operation failed because the target already
exists.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#NODE_NOT_FOUND">NODE_NOT_FOUND</A></B></CODE>
<BR>
The requested target node was not found.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#PERMISSION_DENIED">PERMISSION_DENIED</A></B></CODE>
<BR>
The requested command failed because the principal associated with the
session does not have adequate access control permissions (ACL) on the
target.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#REMOTE_ERROR">REMOTE_ERROR</A></B></CODE>
<BR>
A device initiated remote operation failed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#ROLLBACK_FAILED">ROLLBACK_FAILED</A></B></CODE>
<BR>
The rollback command was not completed successfully.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#SESSION_CREATION_TIMEOUT">SESSION_CREATION_TIMEOUT</A></B></CODE>
<BR>
Creation of a session timed out because of another ongoing session.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#TRANSACTION_ERROR">TRANSACTION_ERROR</A></B></CODE>
<BR>
A transaction-related error occurred in an atomic session.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#UNAUTHORIZED">UNAUTHORIZED</A></B></CODE>
<BR>
The originator's authentication credentials specify a principal with
insufficient rights to complete the command.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#URI_TOO_LONG">URI_TOO_LONG</A></B></CODE>
<BR>
The requested command failed because the target URI or one of its
segments is too long for what the recipient is able or willing to
process, or the target URI contains too many segments.</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#DmtException(java.lang.String[], int, java.lang.String)">DmtException</A></B>(java.lang.String[] path,
int code,
java.lang.String message)</CODE>
<BR>
Create an instance of the exception, specifying the target node as an
array of path segments.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#DmtException(java.lang.String[], int, java.lang.String, java.lang.Throwable)">DmtException</A></B>(java.lang.String[] path,
int code,
java.lang.String message,
java.lang.Throwable cause)</CODE>
<BR>
Create an instance of the exception, specifying the target node as an
array of path segments, and specifying the cause exception.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#DmtException(java.lang.String[], int, java.lang.String, java.util.Vector, boolean)">DmtException</A></B>(java.lang.String[] path,
int code,
java.lang.String message,
java.util.Vector causes,
boolean fatal)</CODE>
<BR>
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.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#DmtException(java.lang.String, int, java.lang.String)">DmtException</A></B>(java.lang.String uri,
int code,
java.lang.String message)</CODE>
<BR>
Create an instance of the exception.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#DmtException(java.lang.String, int, java.lang.String, java.lang.Throwable)">DmtException</A></B>(java.lang.String uri,
int code,
java.lang.String message,
java.lang.Throwable cause)</CODE>
<BR>
Create an instance of the exception, specifying the cause exception.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#DmtException(java.lang.String, int, java.lang.String, java.util.Vector, boolean)">DmtException</A></B>(java.lang.String uri,
int code,
java.lang.String message,
java.util.Vector causes,
boolean fatal)</CODE>
<BR>
Create an instance of the exception, specifying the list of cause
exceptions and whether the exception is a fatal one.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Throwable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#getCause()">getCause</A></B>()</CODE>
<BR>
Get the cause of this exception.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Throwable[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#getCauses()">getCauses</A></B>()</CODE>
<BR>
Get all causes of this exception.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#getCode()">getCode</A></B>()</CODE>
<BR>
Get the error code associated with this exception.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#getMessage()">getMessage</A></B>()</CODE>
<BR>
Get the message associated with this exception.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#getURI()">getURI</A></B>()</CODE>
<BR>
Get the node on which the failed DMT operation was issued.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#isFatal()">isFatal</A></B>()</CODE>
<BR>
Check whether this exception is marked as fatal in the session.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtException.html#printStackTrace(java.io.PrintStream)">printStackTrace</A></B>(java.io.PrintStream s)</CODE>
<BR>
Prints the exception and its backtrace to the specified print stream.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Throwable"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Throwable</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString</CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="UNAUTHORIZED"><!-- --></A><H3>
UNAUTHORIZED</H3>
<PRE>
public static final int <B>UNAUTHORIZED</B></PRE>
<DL>
<DD>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".
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.UNAUTHORIZED">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="NODE_NOT_FOUND"><!-- --></A><H3>
NODE_NOT_FOUND</H3>
<PRE>
public static final int <B>NODE_NOT_FOUND</B></PRE>
<DL>
<DD>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="../../info/dmtree/DmtException.html#URI_TOO_LONG"><CODE>URI_TOO_LONG</CODE></A> or <A HREF="../../info/dmtree/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".
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.NODE_NOT_FOUND">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="COMMAND_NOT_ALLOWED"><!-- --></A><H3>
COMMAND_NOT_ALLOWED</H3>
<PRE>
public static final int <B>COMMAND_NOT_ALLOWED</B></PRE>
<DL>
<DD>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>an attempt is made to create a node where the parent is a leaf node
<li>an attempt is made to rename or delete the root node of the tree
<li>an attempt is made to rename or delete the root node of the session
<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>a node is copied to its descendant
<li>the ACL of the root node is changed not to include Add rights for
all principals
</ul>
<p>
This error code corresponds to the OMA DM response status code 405
"Command not allowed".
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.COMMAND_NOT_ALLOWED">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FEATURE_NOT_SUPPORTED"><!-- --></A><H3>
FEATURE_NOT_SUPPORTED</H3>
<PRE>
public static final int <B>FEATURE_NOT_SUPPORTED</B></PRE>
<DL>
<DD>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".
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.FEATURE_NOT_SUPPORTED">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="URI_TOO_LONG"><!-- --></A><H3>
URI_TOO_LONG</H3>
<PRE>
public static final int <B>URI_TOO_LONG</B></PRE>
<DL>
<DD>The requested command failed because the target URI or one of its
segments is too long for what the recipient is able or willing to
process, or the target URI contains too many segments. The length and
segment number limits are implementation dependent, their minimum values
can be found in the Non Functional Requirements section of the OSGi
specification.
<p>
The <A HREF="../../info/dmtree/Uri.html#mangle(java.lang.String)"><CODE>Uri.mangle(String)</CODE></A> method provides support for ensuring that
a URI segment conforms to the length limits set by the implementation.
<p>
This error code corresponds to the OMA DM response status code 414
"URI too long".
<P>
<DL>
<DT><B>See Also:</B><DD>"OSGi Service Platform, Mobile Specification Release 4",
<A HREF="../../constant-values.html#info.dmtree.DmtException.URI_TOO_LONG">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="NODE_ALREADY_EXISTS"><!-- --></A><H3>
NODE_ALREADY_EXISTS</H3>
<PRE>
public static final int <B>NODE_ALREADY_EXISTS</B></PRE>
<DL>
<DD>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".
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.NODE_ALREADY_EXISTS">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="PERMISSION_DENIED"><!-- --></A><H3>
PERMISSION_DENIED</H3>
<PRE>
public static final int <B>PERMISSION_DENIED</B></PRE>
<DL>
<DD>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".
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.PERMISSION_DENIED">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="COMMAND_FAILED"><!-- --></A><H3>
COMMAND_FAILED</H3>
<PRE>
public static final int <B>COMMAND_FAILED</B></PRE>
<DL>
<DD>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".
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.COMMAND_FAILED">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="DATA_STORE_FAILURE"><!-- --></A><H3>
DATA_STORE_FAILURE</H3>
<PRE>
public static final int <B>DATA_STORE_FAILURE</B></PRE>
<DL>
<DD>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".
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.DATA_STORE_FAILURE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ROLLBACK_FAILED"><!-- --></A><H3>
ROLLBACK_FAILED</H3>
<PRE>
public static final int <B>ROLLBACK_FAILED</B></PRE>
<DL>
<DD>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".
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.ROLLBACK_FAILED">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="REMOTE_ERROR"><!-- --></A><H3>
REMOTE_ERROR</H3>
<PRE>
public static final int <B>REMOTE_ERROR</B></PRE>
<DL>
<DD>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="../../info/dmtree/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.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.REMOTE_ERROR">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="METADATA_MISMATCH"><!-- --></A><H3>
METADATA_MISMATCH</H3>
<PRE>
public static final int <B>METADATA_MISMATCH</B></PRE>
<DL>
<DD>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 or value
<li>creating an interior node where the meta-node defines it as a leaf,
or vice versa
<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>any node creation or deletion that would violate the cardinality
constraints
<li>any leaf node value setting that would violate the allowed formats,
values, mime types, etc.
<li>any node creation that would violate the allowed node names
</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.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.METADATA_MISMATCH">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="INVALID_URI"><!-- --></A><H3>
INVALID_URI</H3>
<PRE>
public static final int <B>INVALID_URI</B></PRE>
<DL>
<DD>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>the URI is an empty string (only invalid if the method does not
accept relative URIs)
<li>the URI contains the segment "<code>.</code>" at a position
other than the beginning of the URI
<li>the node name is "<code>..</code>" or the URI contains such
a segment
<li>the node name is an empty string or the URI contains an empty segment
<li>the node name contains an unescaped '/' character
</ul>
<p>
See the <A HREF="../../info/dmtree/Uri.html#mangle(java.lang.String)"><CODE>Uri.mangle(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="../../info/dmtree/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.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.INVALID_URI">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="CONCURRENT_ACCESS"><!-- --></A><H3>
CONCURRENT_ACCESS</H3>
<PRE>
public static final int <B>CONCURRENT_ACCESS</B></PRE>
<DL>
<DD>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.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.CONCURRENT_ACCESS">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ALERT_NOT_ROUTED"><!-- --></A><H3>
ALERT_NOT_ROUTED</H3>
<PRE>
public static final int <B>ALERT_NOT_ROUTED</B></PRE>
<DL>
<DD>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.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.ALERT_NOT_ROUTED">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TRANSACTION_ERROR"><!-- --></A><H3>
TRANSACTION_ERROR</H3>
<PRE>
public static final int <B>TRANSACTION_ERROR</B></PRE>
<DL>
<DD>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="../../info/dmtree/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.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.TRANSACTION_ERROR">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="SESSION_CREATION_TIMEOUT"><!-- --></A><H3>
SESSION_CREATION_TIMEOUT</H3>
<PRE>
public static final int <B>SESSION_CREATION_TIMEOUT</B></PRE>
<DL>
<DD>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 dependant.
<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.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtException.SESSION_CREATION_TIMEOUT">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="DmtException(java.lang.String, int, java.lang.String)"><!-- --></A><H3>
DmtException</H3>
<PRE>
public <B>DmtException</B>(java.lang.String uri,
int code,
java.lang.String message)</PRE>
<DL>
<DD>Create an instance of the exception. The <code>uri</code> and
<code>message</code> parameters are optional. No originating exception
is specified.
<P>
<DL>
<DT><B>Parameters:</B><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><CODE>code</CODE> - the error code of the failure<DD><CODE>message</CODE> - the message associated with the exception, or
<code>null</code> if there is no error message</DL>
</DL>
<HR>
<A NAME="DmtException(java.lang.String, int, java.lang.String, java.lang.Throwable)"><!-- --></A><H3>
DmtException</H3>
<PRE>
public <B>DmtException</B>(java.lang.String uri,
int code,
java.lang.String message,
java.lang.Throwable cause)</PRE>
<DL>
<DD>Create an instance of the exception, specifying the cause exception. The
<code>uri</code>, <code>message</code> and <code>cause</code>
parameters are optional.
<P>
<DL>
<DT><B>Parameters:</B><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><CODE>code</CODE> - the error code of the failure<DD><CODE>message</CODE> - the message associated with the exception, or
<code>null</code> if there is no error message<DD><CODE>cause</CODE> - the originating exception, or <code>null</code> if there
is no originating exception</DL>
</DL>
<HR>
<A NAME="DmtException(java.lang.String, int, java.lang.String, java.util.Vector, boolean)"><!-- --></A><H3>
DmtException</H3>
<PRE>
public <B>DmtException</B>(java.lang.String uri,
int code,
java.lang.String message,
java.util.Vector causes,
boolean fatal)</PRE>
<DL>
<DD>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.
<P>
<DL>
<DT><B>Parameters:</B><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><CODE>code</CODE> - the error code of the failure<DD><CODE>message</CODE> - the message associated with the exception, or
<code>null</code> if there is no error message<DD><CODE>causes</CODE> - the list of originating exceptions, or empty list or
<code>null</code> if there are no originating exceptions<DD><CODE>fatal</CODE> - whether the exception is fatal</DL>
</DL>
<HR>
<A NAME="DmtException(java.lang.String[], int, java.lang.String)"><!-- --></A><H3>
DmtException</H3>
<PRE>
public <B>DmtException</B>(java.lang.String[] path,
int code,
java.lang.String message)</PRE>
<DL>
<DD>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.
<P>
<DL>
<DT><B>Parameters:</B><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><CODE>code</CODE> - the error code of the failure<DD><CODE>message</CODE> - the message associated with the exception, or
<code>null</code> if there is no error message<DT><B>See Also:</B><DD><A HREF="../../info/dmtree/DmtException.html#DmtException(java.lang.String, int, java.lang.String)"><CODE>DmtException(String, int, String)</CODE></A></DL>
</DL>
<HR>
<A NAME="DmtException(java.lang.String[], int, java.lang.String, java.lang.Throwable)"><!-- --></A><H3>
DmtException</H3>
<PRE>
public <B>DmtException</B>(java.lang.String[] path,
int code,
java.lang.String message,
java.lang.Throwable cause)</PRE>
<DL>
<DD>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.
<P>
<DL>
<DT><B>Parameters:</B><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><CODE>code</CODE> - the error code of the failure<DD><CODE>message</CODE> - the message associated with the exception, or
<code>null</code> if there is no error message<DD><CODE>cause</CODE> - the originating exception, or <code>null</code> if there
is no originating exception<DT><B>See Also:</B><DD><A HREF="../../info/dmtree/DmtException.html#DmtException(java.lang.String, int, java.lang.String, java.lang.Throwable)"><CODE>DmtException(String, int, String, Throwable)</CODE></A></DL>
</DL>
<HR>
<A NAME="DmtException(java.lang.String[], int, java.lang.String, java.util.Vector, boolean)"><!-- --></A><H3>
DmtException</H3>
<PRE>
public <B>DmtException</B>(java.lang.String[] path,
int code,
java.lang.String message,
java.util.Vector causes,
boolean fatal)</PRE>
<DL>
<DD>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.
<P>
<DL>
<DT><B>Parameters:</B><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><CODE>code</CODE> - the error code of the failure<DD><CODE>message</CODE> - the message associated with the exception, or
<code>null</code> if there is no error message<DD><CODE>causes</CODE> - the list of originating exceptions, or empty list or
<code>null</code> if there are no originating exceptions<DD><CODE>fatal</CODE> - whether the exception is fatal<DT><B>See Also:</B><DD><A HREF="../../info/dmtree/DmtException.html#DmtException(java.lang.String, int, java.lang.String, java.util.Vector, boolean)"><CODE>DmtException(String, int, String, Vector, boolean)</CODE></A></DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getURI()"><!-- --></A><H3>
getURI</H3>
<PRE>
public java.lang.String <B>getURI</B>()</PRE>
<DL>
<DD>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>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the URI of the node, or <code>null</code></DL>
</DD>
</DL>
<HR>
<A NAME="getCode()"><!-- --></A><H3>
getCode</H3>
<PRE>
public int <B>getCode</B>()</PRE>
<DL>
<DD>Get the error code associated with this exception. Most of the error
codes within this exception correspond to OMA DM error codes.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the error code</DL>
</DD>
</DL>
<HR>
<A NAME="getMessage()"><!-- --></A><H3>
getMessage</H3>
<PRE>
public java.lang.String <B>getMessage</B>()</PRE>
<DL>
<DD>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>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>getMessage</CODE> in class <CODE>java.lang.Throwable</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the error message in the format described above</DL>
</DD>
</DL>
<HR>
<A NAME="getCause()"><!-- --></A><H3>
getCause</H3>
<PRE>
public java.lang.Throwable <B>getCause</B>()</PRE>
<DL>
<DD>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.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>getCause</CODE> in class <CODE>java.lang.Throwable</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the cause of this exception, or <code>null</code> if no cause
was given</DL>
</DD>
</DL>
<HR>
<A NAME="getCauses()"><!-- --></A><H3>
getCauses</H3>
<PRE>
public java.lang.Throwable[] <B>getCauses</B>()</PRE>
<DL>
<DD>Get all causes of this exception. Returns the causing exceptions in an
array. If no cause was specified, an empty array is returned.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the list of causes of this exception</DL>
</DD>
</DL>
<HR>
<A NAME="isFatal()"><!-- --></A><H3>
isFatal</H3>
<PRE>
public boolean <B>isFatal</B>()</PRE>
<DL>
<DD>Check whether this exception is marked as fatal in the session. Fatal
exceptions trigger an automatic rollback of atomic sessions.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>whether the exception is marked as fatal</DL>
</DD>
</DL>
<HR>
<A NAME="printStackTrace(java.io.PrintStream)"><!-- --></A><H3>
printStackTrace</H3>
<PRE>
public void <B>printStackTrace</B>(java.io.PrintStream s)</PRE>
<DL>
<DD>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.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>printStackTrace</CODE> in class <CODE>java.lang.Throwable</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - <code>PrintStream</code> to use for output</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../info/dmtree/DmtEventListener.html" title="interface in info.dmtree"><B>PREV CLASS</B></A>
<A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?info/dmtree/DmtException.html" target="_top"><B>FRAMES</B></A>
<A HREF="DmtException.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
|