Skip to content

Commit

Permalink
fix spelling error: "occured" -> "occurred"
Browse files Browse the repository at this point in the history
  • Loading branch information
asolntsev committed Jun 15, 2016
1 parent 28f65d7 commit 6c0743b
Show file tree
Hide file tree
Showing 26 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions framework/src/play/PlayPlugin.java
Expand Up @@ -208,15 +208,15 @@ public void afterInvocation() {
}

/**
* Called if an exception occured during the invocation.
* Called if an exception occurred during the invocation.
* @param e The catched exception.
*/
public void onInvocationException(Throwable e) {
}

/**
* Called at the end of the invocation.
* (even if an exception occured).
* (even if an exception occurred).
* Time to close request specific things.
*/
public void invocationFinally() {
Expand Down
2 changes: 1 addition & 1 deletion framework/src/play/db/Evolutions.java
Expand Up @@ -111,7 +111,7 @@ public static void main(String[] args) throws SQLException {
System.out.println("");
System.out.println(e.getEvolutionScript());
System.out.println("");
System.out.println("~ The following error occured:");
System.out.println("~ The following error occurred:");
System.out.println("");
System.out.println(e.getError());
System.out.println("");
Expand Down
2 changes: 1 addition & 1 deletion framework/src/play/exceptions/ContinuationsException.java
Expand Up @@ -13,7 +13,7 @@ public String getErrorTitle() {

@Override
public String getErrorDescription() {
return String.format("A await/Continuations error occured : <strong>%s</strong>", getMessage());
return String.format("A await/Continuations error occurred : <strong>%s</strong>", getMessage());
}

}
2 changes: 1 addition & 1 deletion framework/src/play/exceptions/DatabaseException.java
Expand Up @@ -18,6 +18,6 @@ public String getErrorTitle() {

@Override
public String getErrorDescription() {
return String.format("A database error occured : <strong>%s</strong>", getMessage());
return String.format("A database error occurred : <strong>%s</strong>", getMessage());
}
}
2 changes: 1 addition & 1 deletion framework/src/play/exceptions/JavaExecutionException.java
Expand Up @@ -19,7 +19,7 @@ public String getErrorTitle() {

@Override
public String getErrorDescription() {
return String.format("<strong>%s</strong> occured : %s", getCause().getClass().getSimpleName(), getMessage());
return String.format("<strong>%s</strong> occurred : %s", getCause().getClass().getSimpleName(), getMessage());
}
}

2 changes: 1 addition & 1 deletion framework/src/play/exceptions/MailException.java
Expand Up @@ -21,6 +21,6 @@ public String getErrorTitle() {

@Override
public String getErrorDescription() {
return String.format("A mail error occured : <strong>%s</strong>", getMessage());
return String.format("A mail error occurred : <strong>%s</strong>", getMessage());
}
}
Expand Up @@ -18,7 +18,7 @@ public String getErrorTitle() {

@Override
public String getErrorDescription() {
return String.format("Execution error occured in template <strong>%s</strong>. Exception raised was <strong>%s</strong> : <strong>%s</strong>.", getSourceFile(), getCause().getClass().getSimpleName(), getMessage());
return String.format("Execution error occurred in template <strong>%s</strong>. Exception raised was <strong>%s</strong> : <strong>%s</strong>.", getSourceFile(), getCause().getClass().getSimpleName(), getMessage());
}

public static class DoBodyException extends RuntimeException {
Expand Down
2 changes: 1 addition & 1 deletion framework/src/play/exceptions/UnexpectedException.java
Expand Up @@ -25,7 +25,7 @@ public String getErrorTitle() {
@Override
public String getErrorDescription() {
if (getCause() != null && getCause().getClass() != null)
return String.format("An unexpected error occured caused by exception <strong>%s</strong>:<br/> <strong>%s</strong>", getCause().getClass().getSimpleName(), getCause().getMessage());
return String.format("An unexpected error occurred caused by exception <strong>%s</strong>:<br/> <strong>%s</strong>", getCause().getClass().getSimpleName(), getCause().getMessage());
else return String.format("Unexpected error : %s", getMessage());
}
}
Expand Down
2 changes: 1 addition & 1 deletion framework/templates/errors/500.html
Expand Up @@ -10,7 +10,7 @@
#{500 exception /}
#{/if}
#{else}
<h1>Oops, an error occured</h1>
<h1>Oops, an error occurred</h1>
#{if exception instanceof play.exceptions.PlayException}
<p>
This exception has been logged with id <strong>${exception.id}</strong>.
Expand Down
2 changes: 1 addition & 1 deletion resources/application-skel/app/views/errors/500.html
Expand Up @@ -10,7 +10,7 @@
#{500 exception /}
#{/if}
#{else}
<h1>Oops, an error occured</h1>
<h1>Oops, an error occurred</h1>
#{if exception instanceof play.exceptions.PlayException}
<p>
This exception has been logged with id <strong>${exception.id}</strong>.
Expand Down
2 changes: 1 addition & 1 deletion resources/application-skel/test/Application.test.html
@@ -1,7 +1,7 @@
*{ You can use plain selenium command using the selenium tag }*

#{selenium}
// Open the home page, and check that no error occured
// Open the home page, and check that no error occurred
open('/')
assertNotTitle('Application error')
#{/selenium}
2 changes: 1 addition & 1 deletion samples-and-tests/booking/app/views/errors/500.html
Expand Up @@ -9,7 +9,7 @@
#{500 exception /}
#{/if}
#{else}
<h1>Oops, an error occured</h1>
<h1>Oops, an error occurred</h1>
<p>
This exception has been logged with id <strong>${exception.id}</strong>.
</p>
Expand Down
2 changes: 1 addition & 1 deletion samples-and-tests/booking/test/Application.test.html
@@ -1,7 +1,7 @@
*{ You can use plain selenium command using the selenium tag }*

#{selenium}
// Open the home page, and check that no error occured
// Open the home page, and check that no error occurred
open('/')
waitForPageToLoad(1000)
assertNotTitle('Application error')
Expand Down
Expand Up @@ -10,7 +10,7 @@
#{500 exception /}
#{/if}
#{else}
<h1>Oops, an error occured</h1>
<h1>Oops, an error occurred</h1>
#{if exception instanceof play.exceptions.PlayException}
<p>
This exception has been logged with id <strong>${exception.id}</strong>.
Expand Down
@@ -1,7 +1,7 @@
*{ You can use plain selenium command using the selenium tag }*

#{selenium}
// Open the home page, and check that no error occured
// Open the home page, and check that no error occurred
open('/')
assertNotTitle('Application error')
#{/selenium}
18 changes: 9 additions & 9 deletions samples-and-tests/i-am-a-developer/tests.py
Expand Up @@ -406,7 +406,7 @@ def testSimpleProjectCreation(self):
self.assert_(html.count('Cannot get property \'name\' on null object'))
self.assert_(waitFor(self.play, 'ERROR ~'))
self.assert_(waitFor(self.play, 'Template execution error (In /app/views/Application/index.html around line 4)'))
self.assert_(waitFor(self.play, 'Execution error occured in template /app/views/Application/index.html.'))
self.assert_(waitFor(self.play, 'Execution error occurred in template /app/views/Application/index.html.'))
self.assert_(waitFor(self.play, 'at Invocation.HTTP Request(Play!)'))
self.assert_(waitFor(self.play, 'at /app/views/Application/index.html.(line:4)'))
self.assert_(waitFor(self.play, '...'))
Expand All @@ -426,7 +426,7 @@ def testSimpleProjectCreation(self):
self.assert_(html.count('Cannot get property \'name\' on null object'))
self.assert_(waitFor(self.play, 'ERROR ~'))
self.assert_(waitFor(self.play, 'Template execution error (In /app/views/Application/index.html around line 4)'))
self.assert_(waitFor(self.play, 'Execution error occured in template /app/views/Application/index.html.'))
self.assert_(waitFor(self.play, 'Execution error occurred in template /app/views/Application/index.html.'))
self.assert_(waitFor(self.play, 'at Invocation.HTTP Request(Play!)'))
self.assert_(waitFor(self.play, 'at /app/views/Application/index.html.(line:4)'))
self.assert_(waitFor(self.play, '...'))
Expand Down Expand Up @@ -458,7 +458,7 @@ def testSimpleProjectCreation(self):
self.assert_(html.count('In /app/controllers/Application.java (around line 13)'))
self.assert_(waitFor(self.play, 'ERROR ~'))
self.assert_(waitFor(self.play, 'Execution exception (In /app/controllers/Application.java around line 13)'))
self.assert_(waitFor(self.play, 'ArithmeticException occured : / by zero'))
self.assert_(waitFor(self.play, 'ArithmeticException occurred : / by zero'))
self.assert_(waitFor(self.play, 'at controllers.Application.index(Application.java:13)'))
self.assert_(waitFor(self.play, '...'))

Expand All @@ -477,7 +477,7 @@ def testSimpleProjectCreation(self):
self.assert_(html.count('In /app/controllers/Application.java (around line 13)'))
self.assert_(waitFor(self.play, 'ERROR ~'))
self.assert_(waitFor(self.play, 'Execution exception (In /app/controllers/Application.java around line 13)'))
self.assert_(waitFor(self.play, 'ArithmeticException occured : / by zero'))
self.assert_(waitFor(self.play, 'ArithmeticException occurred : / by zero'))
self.assert_(waitFor(self.play, 'at controllers.Application.index(Application.java:13)'))
self.assert_(waitFor(self.play, '...'))

Expand Down Expand Up @@ -665,8 +665,8 @@ def waitForWithFail(process, pattern, failPattern):
sys.stdout.flush()
line = process.stdout.readline().strip()
sys.stdout.flush()
#print timeoutOccured
if timeoutOccured:
#print timeoutOccurred
if timeoutOccurred:
return False
if line == '@KILLED':
return False
Expand All @@ -678,13 +678,13 @@ def waitForWithFail(process, pattern, failPattern):
timer.cancel()
return True

timeoutOccured = False
timeoutOccurred = False

def timeout(process):
global timeoutOccured
global timeoutOccurred
print '@@@@ TIMEOUT !'
killPlay()
timeoutOccured = True
timeoutOccurred = True

def killPlay():
try:
Expand Down
2 changes: 1 addition & 1 deletion samples-and-tests/java8Support/app/views/errors/500.html
Expand Up @@ -10,7 +10,7 @@
#{500 exception /}
#{/if}
#{else}
<h1>Oops, an error occured</h1>
<h1>Oops, an error occurred</h1>
#{if exception instanceof play.exceptions.PlayException}
<p>
This exception has been logged with id <strong>${exception.id}</strong>.
Expand Down
2 changes: 1 addition & 1 deletion samples-and-tests/java8Support/test/Application.test.html
@@ -1,7 +1,7 @@
*{ You can use plain selenium command using the selenium tag }*

#{selenium}
// Open the home page, and check that no error occured
// Open the home page, and check that no error occurred
open('/')
assertNotTitle('Application error')
#{/selenium}
2 changes: 1 addition & 1 deletion samples-and-tests/jobboard/app/views/errors/500.html
Expand Up @@ -9,7 +9,7 @@
#{500 exception /}
#{/if}
#{else}
<h1>Oops, an error occured</h1>
<h1>Oops, an error occurred</h1>
<p>
This exception has been logged with id <strong>${exception.id}</strong>.
</p>
Expand Down
Expand Up @@ -9,7 +9,7 @@
#{500 exception /}
#{/if}
#{else}
<h1>Oops, an error occured</h1>
<h1>Oops, an error occurred</h1>
<p>
This exception has been logged with id <strong>${exception.id}</strong>.
</p>
Expand Down
@@ -1,7 +1,7 @@
*{ You can use plain selenium command using the selenium tag }*

#{selenium}
// Open the home page, and check that no error occured
// Open the home page, and check that no error occurred
open('@{Application.alertConfirmPrompt()}')

// Handle alert
Expand Down
2 changes: 1 addition & 1 deletion samples-and-tests/twitter-oauth/app/views/errors/500.html
Expand Up @@ -9,7 +9,7 @@
#{500 exception /}
#{/if}
#{else}
<h1>Oops, an error occured</h1>
<h1>Oops, an error occurred</h1>
<p>
This exception has been logged with id <strong>${exception.id}</strong>.
</p>
Expand Down
Expand Up @@ -488,7 +488,7 @@ $.extend($.validator, {
return false;
}
} catch(e) {
this.settings.debug && window.console && console.log("exception occured when checking element " + element.id
this.settings.debug && window.console && console.log("exception occurred when checking element " + element.id
+ ", check the '" + rule.method + "' method");
throw e;
}
Expand Down
2 changes: 1 addition & 1 deletion samples-and-tests/yabe/app/views/errors/500.html
Expand Up @@ -9,7 +9,7 @@
#{500 exception /}
#{/if}
#{else}
<h1>Oops, an error occured</h1>
<h1>Oops, an error occurred</h1>
<p>
This exception has been logged with id <strong>${exception.id}</strong>.
</p>
Expand Down
2 changes: 1 addition & 1 deletion samples-and-tests/zencontact/app/views/errors/500.html
Expand Up @@ -9,7 +9,7 @@
#{500 exception /}
#{/if}
#{else}
<h1>Oops, an error occured</h1>
<h1>Oops, an error occurred</h1>
<p>
This exception has been logged with id <strong>${exception.id}</strong>.
</p>
Expand Down
2 changes: 1 addition & 1 deletion samples-and-tests/zencontact/test/Application.test.html
Expand Up @@ -3,7 +3,7 @@
#{fixture delete:'all', load:'test-data.yml' /}

#{selenium}
// Open the home page, and check that no error occured
// Open the home page, and check that no error occurred
open('/')
assertNotTitle('Application error')
assertTextPresent('Zencontact')
Expand Down

0 comments on commit 6c0743b

Please sign in to comment.