FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rJava/src/java/NotComparableException.java at master · s-u/rJava · GitHub
s-u
/
rJava
Public
Notifications
You must be signed in to change notification settings
Fork
78
Star
242
Code
Issues
9
Pull requests
1
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
rJava
/
src
/
java
/
NotComparableException.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (21 loc) · 725 Bytes
Breadcrumbs
rJava
/
src
/
java
/
NotComparableException.java
Copy path
File metadata and controls
24 lines (21 loc) · 725 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* Exception generated when two objects cannot be compared
*
* Such cases happen when an object does not implement the Comparable
* interface or when the comparison produces a ClassCastException
*/
public
class
NotComparableException
extends
Exception
{
public
NotComparableException
(
Object
a
,
Object
b
){
super
(
"objects of class "
+
a
.
getClass
().
getName
() +
" and "
+
b
.
getClass
().
getName
() +
" are not comparable"
) ;
}
public
NotComparableException
(
Object
o
){
this
(
o
.
getClass
().
getName
() ) ;
}
public
NotComparableException
(
Class
cl
){
this
(
cl
.
getName
() ) ;
}
public
NotComparableException
(
String
type
){
super
(
"class "
+
type
+
" does not implement java.util.Comparable"
) ;
}
}
Back
|
FazBrowse Home
|
New Git URL