Java Doc for SVNErrorMessage.java in  » Source-Control » tmatesoft-SVN » org » tmatesoft » svn » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Source Control » tmatesoft SVN » org.tmatesoft.svn.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.tmatesoft.svn.core.SVNErrorMessage

SVNErrorMessage
public class SVNErrorMessage implements Serializable(Code)
The SVNErrorMessage class represents error and warning messages describing reasons of exceptions occurred during runtime. An error message may be of two levels:
  • Error type
  • Warning type
An error message may contain an error messages stack trace, what is useful for error reason investigations. Also such a message contains an error code ( SVNErrorCode ) what gives an ability to find out what kind of an error it is.

Error messages may be formatted. SVNErrorMessage performs formatting with the help of the JDK's MessageFormat class. To make a formatted message, use MessageFormat parsable format patterns and provide an array of related objects when creating an SVNErrorMessage.

Error messages may be supplied within exceptions of the main exception type - SVNException .
version:
   1.1.1
author:
   TMate Software Ltd.



Field Summary
final public static  intTYPE_ERROR
     Error messages of this type are considered to be errors (most critical) rather than warnings.
final public static  intTYPE_WARNING
     Error messages of this type are considered to be warnings, what in certain situations may be OK.
public static  SVNErrorMessageUNKNOWN_ERROR_MESSAGE
     This is a type of an error message denoting an error of an unknown nature.

Constructor Summary
protected  SVNErrorMessage(SVNErrorCode code, String message, Object[] relatedObjects, Throwable th, int type)
    

Method Summary
public static  SVNErrorMessagecreate(SVNErrorCode code)
     Creates an error message given an error code.
public static  SVNErrorMessagecreate(SVNErrorCode code, String message)
     Creates an error message given an error code and description.
public static  SVNErrorMessagecreate(SVNErrorCode code, Throwable cause)
     Creates an error message given an error code and cause.
public static  SVNErrorMessagecreate(SVNErrorCode code, String message, Object object)
     Creates an error message given an error code, description and may be a related object to be formatted with the error description.
public static  SVNErrorMessagecreate(SVNErrorCode code, String message, Object[] objects)
     Creates an error message given an error code, description and may be related objects to be formatted with the error description.
public static  SVNErrorMessagecreate(SVNErrorCode code, String message, int type)
     Creates an error message given an error code, description and a type ( whether it's a warning or an error).
public static  SVNErrorMessagecreate(SVNErrorCode code, String message, Object object, int type)
     Creates an error message given an error code, description, an error type (whether it's a warning or an error) and may be a related object to be formatted with the error description.
public static  SVNErrorMessagecreate(SVNErrorCode code, String message, Object[] objects, int type)
     Creates an error message given an error code, description, an error type (whether it's a warning or an error) and may be related objects to be formatted with the error description.
public  ThrowablegetCause()
     Returns throwable that is cause of the error if any.
public  SVNErrorMessagegetChildErrorMessage()
     Returns an error message (if any) that was returned from a deeper method call.
public  SVNErrorCodegetErrorCode()
     Returns the error code of the error.
public  StringgetFullMessage()
     Gets a string representation of the entire stack trace of error messages (if they were provided) starting with the initial cause of the error.
public  StringgetMessage()
     Returns an error description formatted with the related objects if needed.
public  StringgetMessageTemplate()
     Returns an error description which may contain message format patterns.
public  Object[]getRelatedObjects()
     Returns objects (if any) that were provided to be formatted with the error description.
public  intgetType()
     Returns the type of the error (whether it's a warning or an error).
public  booleanhasChildErrorMessage()
     Says if this error message object has got a child error message.
public  booleanisWarning()
     Returns true if this message is a warning message, not error one.
public  voidsetChildErrorMessage(SVNErrorMessage childMessage)
     Sets a child error message for this one.
public  StringtoString()
     Returns a string representation of this error message object formatting (if needed) the error description with the provided related objects.
public  SVNErrorMessagewrap(String parentMessage)
     Wraps this error message into a new one that is returned as a parent error message.
public  SVNErrorMessagewrap(String parentMessage, Object relatedObject)
     Wraps this error message into a new one that is returned as a parent error message.
public  SVNErrorMessagewrap(String parentMessage, Object[] relatedObjects)
    

Field Detail
TYPE_ERROR
final public static int TYPE_ERROR(Code)
Error messages of this type are considered to be errors (most critical) rather than warnings.



TYPE_WARNING
final public static int TYPE_WARNING(Code)
Error messages of this type are considered to be warnings, what in certain situations may be OK.



UNKNOWN_ERROR_MESSAGE
public static SVNErrorMessage UNKNOWN_ERROR_MESSAGE(Code)
This is a type of an error message denoting an error of an unknown nature. This corresponds to an SVNErrorCode.UNKNOWN error.




Constructor Detail
SVNErrorMessage
protected SVNErrorMessage(SVNErrorCode code, String message, Object[] relatedObjects, Throwable th, int type)(Code)




Method Detail
create
public static SVNErrorMessage create(SVNErrorCode code)(Code)
Creates an error message given an error code.
Parameters:
  code - an error code a new error message



create
public static SVNErrorMessage create(SVNErrorCode code, String message)(Code)
Creates an error message given an error code and description.
Parameters:
  code - an error code
Parameters:
  message - an error description a new error message



create
public static SVNErrorMessage create(SVNErrorCode code, Throwable cause)(Code)
Creates an error message given an error code and cause.
Parameters:
  code - an error code
Parameters:
  cause - cause of the error a new error message



create
public static SVNErrorMessage create(SVNErrorCode code, String message, Object object)(Code)
Creates an error message given an error code, description and may be a related object to be formatted with the error description. To format the provided object with the message, you should use valid format patterns parsable for MessageFormat .
Parameters:
  code - an error code
Parameters:
  message - an error description
Parameters:
  object - an object related to the error message a new error message



create
public static SVNErrorMessage create(SVNErrorCode code, String message, Object[] objects)(Code)
Creates an error message given an error code, description and may be related objects to be formatted with the error description. To format the provided objects with the message, you should use valid format patterns parsable for MessageFormat .
Parameters:
  code - an error code
Parameters:
  message - an error description
Parameters:
  objects - an array of objects related to the error message a new error message



create
public static SVNErrorMessage create(SVNErrorCode code, String message, int type)(Code)
Creates an error message given an error code, description and a type ( whether it's a warning or an error).
Parameters:
  code - an error code
Parameters:
  message - an error description
Parameters:
  type - an error type a new error message



create
public static SVNErrorMessage create(SVNErrorCode code, String message, Object object, int type)(Code)
Creates an error message given an error code, description, an error type (whether it's a warning or an error) and may be a related object to be formatted with the error description. To format the provided object with the message, you should use valid format patterns parsable for MessageFormat .
Parameters:
  code - an error code
Parameters:
  message - an error description
Parameters:
  object - an object related to the error message
Parameters:
  type - an error type a new error message



create
public static SVNErrorMessage create(SVNErrorCode code, String message, Object[] objects, int type)(Code)
Creates an error message given an error code, description, an error type (whether it's a warning or an error) and may be related objects to be formatted with the error description. To format the provided objects with the message, you should use valid format patterns parsable for MessageFormat .
Parameters:
  code - an error code
Parameters:
  message - an error description
Parameters:
  objects - an array of objects related to the error message
Parameters:
  type - an error type a new error message



getCause
public Throwable getCause()(Code)
Returns throwable that is cause of the error if any. throwable that caused error or null if not applicable or not known.



getChildErrorMessage
public SVNErrorMessage getChildErrorMessage()(Code)
Returns an error message (if any) that was returned from a deeper method call. So the topmost error messages have the entire chain of error messages down to the real error cause. a child error message object (if this object is not the first one)



getErrorCode
public SVNErrorCode getErrorCode()(Code)
Returns the error code of the error. th error code of the error



getFullMessage
public String getFullMessage()(Code)
Gets a string representation of the entire stack trace of error messages (if they were provided) starting with the initial cause of the error. a string representing a full list of error messages



getMessage
public String getMessage()(Code)
Returns an error description formatted with the related objects if needed. This call is equivalent to a call to SVNErrorMessage.toString() an error message



getMessageTemplate
public String getMessageTemplate()(Code)
Returns an error description which may contain message format patterns. an error description



getRelatedObjects
public Object[] getRelatedObjects()(Code)
Returns objects (if any) that were provided to be formatted with the error description. Objects are formatted by the standard MessageFormat engine. an array of objects



getType
public int getType()(Code)
Returns the type of the error (whether it's a warning or an error). the type of this error message



hasChildErrorMessage
public boolean hasChildErrorMessage()(Code)
Says if this error message object has got a child error message. true if has, false otherwise (for example, an initial error message would not have a childerror message)



isWarning
public boolean isWarning()(Code)
Returns true if this message is a warning message, not error one. true or false



setChildErrorMessage
public void setChildErrorMessage(SVNErrorMessage childMessage)(Code)
Sets a child error message for this one.
Parameters:
  childMessage - a child error message



toString
public String toString()(Code)
Returns a string representation of this error message object formatting (if needed) the error description with the provided related objects. If no error description pattern has been provided, the return value includes a string representation of the error code (see SVNErrorCode ). a string representing this object.



wrap
public SVNErrorMessage wrap(String parentMessage)(Code)
Wraps this error message into a new one that is returned as a parent error message. A parent message is set the error code of this error message, a new error description and this error message as its child.
Parameters:
  parentMessage - a parent error description a parent error message



wrap
public SVNErrorMessage wrap(String parentMessage, Object relatedObject)(Code)
Wraps this error message into a new one that is returned as a parent error message. A parent message is set the error code of this error message, a new error description and this error message as its child.
Parameters:
  parentMessage - a parent error description
Parameters:
  relatedObject - an object to be formatted with parentMessage a parent error message



wrap
public SVNErrorMessage wrap(String parentMessage, Object[] relatedObjects)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.