Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
efcdda5d
Commit
efcdda5d
authored
9 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Patches
Plain Diff
arm: the most specific exception type was ignored by raise
parent
7be74511
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/box/xlog.h
+2
-0
2 additions, 0 deletions
src/box/xlog.h
src/exception.h
+4
-9
4 additions, 9 deletions
src/exception.h
src/fiber.h
+1
-0
1 addition, 0 deletions
src/fiber.h
src/lua/utils.h
+1
-0
1 addition, 0 deletions
src/lua/utils.h
with
8 additions
and
9 deletions
src/box/xlog.h
+
2
−
0
View file @
efcdda5d
...
...
@@ -45,6 +45,7 @@ struct XlogError: public Exception
{
XlogError
(
const
char
*
file
,
unsigned
line
,
const
char
*
format
,
...);
virtual
void
raise
()
{
throw
this
;
}
protected
:
XlogError
(
const
struct
type
*
type
,
const
char
*
file
,
unsigned
line
,
const
char
*
format
,
...);
...
...
@@ -55,6 +56,7 @@ struct XlogGapError: public XlogError
XlogGapError
(
const
char
*
file
,
unsigned
line
,
const
struct
vclock
*
from
,
const
struct
vclock
*
to
);
virtual
void
raise
()
{
throw
this
;
}
};
/* {{{ log dir */
...
...
This diff is collapsed.
Click to expand it.
src/exception.h
+
4
−
9
View file @
efcdda5d
...
...
@@ -43,11 +43,7 @@ class Exception: public diag_msg {
public:
void
*
operator
new
(
size_t
size
);
void
operator
delete
(
void
*
);
virtual
void
raise
()
{
/* Throw the most specific type of exception */
throw
this
;
}
virtual
void
raise
()
=
0
;
const
char
*
errmsg
()
const
...
...
@@ -84,10 +80,7 @@ extern const struct type type_SystemError;
class
SystemError
:
public
Exception
{
public:
virtual
void
raise
()
{
throw
this
;
}
virtual
void
raise
()
{
throw
this
;
}
int
errnum
()
const
...
...
@@ -119,12 +112,14 @@ class OutOfMemory: public SystemError {
OutOfMemory
(
const
char
*
file
,
unsigned
line
,
size_t
amount
,
const
char
*
allocator
,
const
char
*
object
);
virtual
void
raise
()
{
throw
this
;
}
};
extern
const
struct
type
type_TimedOut
;
class
TimedOut
:
public
SystemError
{
public:
TimedOut
(
const
char
*
file
,
unsigned
line
);
virtual
void
raise
()
{
throw
this
;
}
};
/** \endcond */
...
...
This diff is collapsed.
Click to expand it.
src/fiber.h
+
1
−
0
View file @
efcdda5d
...
...
@@ -98,6 +98,7 @@ class FiberCancelException: public Exception {
virtual
void
log
()
const
{
say_debug
(
"FiberCancelException"
);
}
virtual
void
raise
()
{
throw
this
;
}
};
#endif
/* defined(__cplusplus) */
...
...
This diff is collapsed.
Click to expand it.
src/lua/utils.h
+
1
−
0
View file @
efcdda5d
...
...
@@ -509,6 +509,7 @@ class LuajitError: public Exception {
public:
LuajitError
(
const
char
*
file
,
unsigned
line
,
struct
lua_State
*
L
);
virtual
void
raise
()
{
throw
this
;
}
};
static
inline
void
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment