Class: VertxUnit::Failure

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/failure.rb

Instance Method Summary (collapse)

Constructor Details

- (Failure) initialize(j_del)

Returns a new instance of Failure


14
15
16
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/failure.rb', line 14

def initialize(j_del)
  @j_del = j_del
end

Instance Method Details

- (Boolean) error?

Returns:

  • (Boolean)

Raises:

  • (ArgumentError)


23
24
25
26
27
28
29
30
31
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/failure.rb', line 23

def error?
  if !block_given?
    if @cached_is_error != nil
      return @cached_is_error
    end
    return @cached_is_error = @j_del.java_method(:isError, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling error?()"
end

- (Object) j_del



19
20
21
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/failure.rb', line 19

def j_del
  @j_del
end

- (Object) message

Raises:

  • (ArgumentError)


33
34
35
36
37
38
39
40
41
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/failure.rb', line 33

def message
  if !block_given?
    if @cached_message != nil
      return @cached_message
    end
    return @cached_message = @j_del.java_method(:message, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling message()"
end

- (Object) stack_trace

Raises:

  • (ArgumentError)


43
44
45
46
47
48
49
50
51
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/failure.rb', line 43

def stack_trace
  if !block_given?
    if @cached_stack_trace != nil
      return @cached_stack_trace
    end
    return @cached_stack_trace = @j_del.java_method(:stackTrace, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling stack_trace()"
end