Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<failOnError>false</failOnError>
<attach>true</attach>
</configuration>
<executions>
Expand Down Expand Up @@ -76,7 +75,7 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
<version>1.4</version>
<version>1.5</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
Expand All @@ -101,11 +100,6 @@
<version>7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind.jaxb</groupId>
<artifactId>isorelax</artifactId>
<version>20090621</version>
</dependency>
<dependency>
<groupId>net.java.dev.msv</groupId>
<artifactId>msv-core</artifactId>
Expand Down
48 changes: 24 additions & 24 deletions src/main/java/org/semanticwb/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void trace(String txt, Throwable t);
void trace(String txt, Throwable t);

/**
* Registers a message to provide information about an exceptional condition in
Expand All @@ -64,7 +64,7 @@ public interface Logger {
* @param txt
* a string representing the message to include in the app's log
*/
public void trace(String txt);
void trace(String txt);

/**
* Registers the elements of the execution stack at the moment it is called to
Expand All @@ -79,7 +79,7 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void trace(Throwable t);
void trace(Throwable t);

/*
* Los 3 siguientes metodos son usados para debugueos sencillos
Expand All @@ -98,7 +98,7 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void debug(String txt, Throwable t);
void debug(String txt, Throwable t);

/**
* Registers a message to provide information about an exceptional condition.
Expand All @@ -110,7 +110,7 @@ public interface Logger {
* @param txt
* a string representing the message to include in the app's log
*/
public void debug(String txt);
void debug(String txt);

/**
* Registers an exceptional condition in the execution of the current thread.
Expand All @@ -122,7 +122,7 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void debug(Throwable t);
void debug(Throwable t);

/*
* Los 3 siguientes metodos son usados para Informacion del Sistema
Expand All @@ -135,23 +135,23 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void info(String txt, Throwable t);
void info(String txt, Throwable t);

/**
* Registers a message to provide detail on an exceptional condition.
*
* @param txt
* a string representing the message to include in the app's log
*/
public void info(String txt);
void info(String txt);

/**
* Registers an exceptional condition in an informative manner.
*
* @param t
* a throwable object indicating an exceptional condition
*/
public void info(Throwable t);
void info(Throwable t);

/*
* Los 3 siguientes metodos son usados para registrar advertencias
Expand All @@ -168,7 +168,7 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void warn(String txt, Throwable t);
void warn(String txt, Throwable t);

/**
* Registers a message as a warning on an exceptional condition generated.
Expand All @@ -180,7 +180,7 @@ public interface Logger {
* @param txt
* a string representing the message to include in the app's log
*/
public void warn(String txt);
void warn(String txt);

/**
* Registers data as a warning on an exceptional condition generated.
Expand All @@ -192,7 +192,7 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void warn(Throwable t);
void warn(Throwable t);

/*
* Los 3 siguientes metodos son usados para registrar errores
Expand All @@ -208,7 +208,7 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void error(String txt, Throwable t);
void error(String txt, Throwable t);

/**
* Registers a message to report an error in the application.
Expand All @@ -219,7 +219,7 @@ public interface Logger {
* @param txt
* a string representing the message to include in the app's log
*/
public void error(String txt);
void error(String txt);

/**
* Registers data to report an error in the application.
Expand All @@ -230,7 +230,7 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void error(Throwable t);
void error(Throwable t);

/*
* Los 3 siguientes metodos son usados para registrar excepciones en tiempo de
Expand All @@ -248,7 +248,7 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void fatal(String txt, Throwable t);
void fatal(String txt, Throwable t);

/**
* Registers a message about an exceptional condition generated at runtime.
Expand All @@ -260,7 +260,7 @@ public interface Logger {
* @param txt
* a string representing the message to include in the app's log
*/
public void fatal(String txt);
void fatal(String txt);

/**
* Registers data of an exceptional condition generated at runtime.
Expand All @@ -272,7 +272,7 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void fatal(Throwable t);
void fatal(Throwable t);

/*
* Los 3 siguientes metodos son usados para notificar eventos
Expand All @@ -288,7 +288,7 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void event(String txt, Throwable t);
void event(String txt, Throwable t);

/**
* Registers a message when certain event occurs.
Expand All @@ -299,7 +299,7 @@ public interface Logger {
* @param txt
* a string representing the message to include in the app's log
*/
public void event(String txt);
void event(String txt);

/**
* Registers data when certain event occurs.
Expand All @@ -310,26 +310,26 @@ public interface Logger {
* @param t
* a throwable object indicating an exceptional condition
*/
public void event(Throwable t);
void event(Throwable t);

/**
* Regresa true si el nivel de loggeo es debug
*
* @return
*/
public boolean isDebugEnabled();
boolean isDebugEnabled();

/**
* Regresa true si el nivel de loggeo es trace
*
* @return
*/
public boolean isTraceEnabled();
boolean isTraceEnabled();

/**
* Regresa true si el nivel de loggeo es info
*
* @return
*/
public boolean isInfoEnabled();
boolean isInfoEnabled();
}
66 changes: 31 additions & 35 deletions src/main/java/org/semanticwb/SWBException.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,46 +27,42 @@
* <p>
* La excepci&oacute;n gen&eacute;rica en el API de SemanticWebBuilder.
* </p>
*
*
* @author Javier Solis Gonzalez
* @version 1.1
*/
public class SWBException extends java.lang.Exception {

/**
* Generates an instance of this exception with a specified detail message.
* <p>
* Genera una instancia de esta excepci&oacute;n con un mensaje de detalle
* especificado.
* </p>
*
* @param msg
* the detail message (which is saved for later retrieval by the
* {@link Throwable.getMessage() Throwable.getMessage()} method)
*/
public SWBException(String msg) {
super(msg);
}
/**
* Generates an instance of this exception with a specified detail message.
* <p>
* Genera una instancia de esta excepci&oacute;n con un mensaje de detalle
* especificado.
* </p>
*
* @param msg the detail message (which is saved for later retrieval by the {@link #getMessage()} method)
*/
public SWBException(String msg) {
super(msg);
}

/**
* Generates an instance of this exception with the specified detail message and
* cause.
* <p>
* Genera una instancia de esta excepci&oacute;n con el mensaje de detalle y
* causa especificados.
* </p>
*
* @param msg
* the detail message (which is saved for later retrieval by the
* Throwable.getMessage() method)
* @param e
* the cause (which is saved for later retrieval by the
* {@link Throwable.getCause() Throwable.getCause()} method). (A
* {@code null} value is permitted, and indicates that the cause is
* nonexistent or unknown.)
*/
public SWBException(String msg, Exception e) {
super(msg, e);
}
/**
* Generates an instance of this exception with the specified detail message and
* cause.
* <p>
* Genera una instancia de esta excepci&oacute;n con el mensaje de detalle y
* causa especificados.
* </p>
*
* @param msg the detail message (which is saved for later retrieval by the
* Throwable.getMessage() method)
* @param e the cause (which is saved for later retrieval by the
* {@link #getCause()} method). (A
* {@code null} value is permitted, and indicates that the cause is
* nonexistent or unknown.)
*/
public SWBException(String msg, Exception e) {
super(msg, e);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ public SWBMethodImplementationRequiredException() {
* especificado.
* </p>
*
* @param msg
* the detail message (which is saved for later retrieval by the
* {@link Throwable.getMessage() Throwable.getMessage()} method)
* @param msg the detail message (which is saved for later retrieval by the {@link #getMessage()} method)
*/
public SWBMethodImplementationRequiredException(String msg) {
super(msg);
Expand All @@ -69,7 +67,7 @@ public SWBMethodImplementationRequiredException(String msg) {
* Throwable.getMessage() method)
* @param e
* the cause (which is saved for later retrieval by the
* {@link Throwable.getCause() Throwable.getCause()} method). (A
* {@link #getCause()} method). (A
* {@code null} value is permitted, and indicates that the cause is
* nonexistent or unknown.)
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/semanticwb/SWBRuntimeException.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public SWBRuntimeException() {
*
* @param msg
* the detail message (which is saved for later retrieval by the
* {@link Throwable.getMessage() Throwable.getMessage()} method)
* {@link #getMessage()} method)
*/
public SWBRuntimeException(String msg) {
super(msg);
Expand All @@ -68,7 +68,7 @@ public SWBRuntimeException(String msg) {
* Throwable.getMessage() method)
* @param e
* the cause (which is saved for later retrieval by the
* {@link Throwable.getCause() Throwable.getCause()} method). (A
* {@link #getCause()} method). (A
* {@code null} value is permitted, and indicates that the cause is
* nonexistent or unknown.)
*/
Expand Down
Loading